onFailure

abstract fun onFailure(reasons: List<RouterFailure>, routeOptions: RouteOptions)

Called whenever router fails.

Parameters

reasons

a list of reasons for a failure. The list may contain more than one element if a fallback router was used and failed as well. The elements are ordered by attempt - the first attempt and its failure reason will be at the first index in the list.

routeOptions

the original request options