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

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val errorBody: JsonObject? = null
Link copied to clipboard
val errorType: String? = null
Link copied to clipboard
val exception: String? = null
Link copied to clipboard
val isRateLimitException: Boolean
Link copied to clipboard
open val message: String?
Link copied to clipboard
val responseJsonString: String? = null

The raw JSON string from the socket that caused the error.