Failed

class Failed @JvmOverloads constructor(    val message: String,     val throwable: Throwable? = null,     val reasons: List<RouterFailure>? = null) : RerouteState

Re-route request has failed.

You can call RerouteController.reroute to retry the request.

Parameters

message

describes error

throwable

optional throwable

reasons

optional reasons for the failure

Constructors

Link copied to clipboard
fun Failed(    message: String,     throwable: Throwable? = null,     reasons: List<RouterFailure>? = null)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one.

Link copied to clipboard
open override fun hashCode(): Int

Returns a hash code value for the object.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the object.

Properties

Link copied to clipboard
val isRetryable: Boolean

Indicates if it makes sense to retry for this type of failures. If false, it doesn't make sense to retry route request

Link copied to clipboard
val message: String
Link copied to clipboard
val reasons: List<RouterFailure>? = null
Link copied to clipboard
val throwable: Throwable? = null