RequestFailedException

open class RequestFailedException(responseJsonString: String?, errorBody: JsonObject?, errorType: String?, exception: String?, extraMessage: String?, cause: Throwable?) : SignaldException

An exception that is thrown if the resulting JSON can't be deserialized or the socket returns an error response.

Constructors

RequestFailedException
Link copied to clipboard
common
fun RequestFailedException(responseJsonString: String? = null, errorBody: JsonObject? = null, errorType: String? = null, exception: String? = null, extraMessage: String? = null, cause: Throwable? = null)

Types

Companion
Link copied to clipboard
common
object Companion

Properties

cause
Link copied to clipboard
common
open val cause: Throwable?
errorBody
Link copied to clipboard
common
val errorBody: JsonObject? = null
errorType
Link copied to clipboard
common
val errorType: String? = null
exception
Link copied to clipboard
common
val exception: String? = null
isRateLimitException
Link copied to clipboard
common
val isRateLimitException: Boolean
message
Link copied to clipboard
common
open val message: String?
responseJsonString
Link copied to clipboard
common
val responseJsonString: String? = null
The raw JSON string from the socket that caused the error.