Failed

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

Re-route request has failed.

You can MapboxNavigation.requestRoutes or MapboxNavigation.setRoutes with RouteOptionsUpdater to retry the request.

Parameters

message

describes error

throwable

optional throwable

reasons

optional reasons for the failure

Constructors

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

Functions

component1
Link copied to clipboard
operator fun component1(): String
component2
Link copied to clipboard
operator fun component2(): Throwable?
component3
Link copied to clipboard
operator fun component3(): List<RouterFailure>?
copy
Link copied to clipboard
fun copy(message: String, throwable: Throwable? = null, reasons: List<RouterFailure>? = null): RerouteState.Failed
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

message
Link copied to clipboard
val message: String
describes error
reasons
Link copied to clipboard
val reasons: List<RouterFailure>? = null
optional reasons for the failure
throwable
Link copied to clipboard
val throwable: Throwable? = null
optional throwable