RouterFailure

data class RouterFailure @JvmOverloads constructor(    val url: URL,     val routerOrigin: RouterOrigin,     val message: String,     val code: Int? = null,     val throwable: Throwable? = null,     val isRetryable: Boolean = false)

Describes a reason for a route request failure.

Parameters

url

original request URL

routerOrigin

router that failed to generate a route

message

message attached to the error code

code

if present, can be either be the HTTP code for offboard requests or an internal error code for onboard requests

throwable

provided if an unexpected exception occurred when creating the request or processing the response

isRetryable

Indicates if it makes sense to retry the failed route request for this type of failure.

Constructors

Link copied to clipboard
fun RouterFailure(    url: URL,     routerOrigin: RouterOrigin,     message: String,     code: Int? = null,     throwable: Throwable? = null,     isRetryable: Boolean = false)

Properties

Link copied to clipboard
val code: Int? = null
Link copied to clipboard
val isRetryable: Boolean = false
Link copied to clipboard
val message: String
Link copied to clipboard
val routerOrigin: RouterOrigin
Link copied to clipboard
val throwable: Throwable? = null
Link copied to clipboard
val url: URL