Failure

class Failure(val networkException: NetworkException) : NetworkResult

Failure indicates that the network request was unsuccessful for the reason given by the returned networkException

Failure does not always mean that the connection was not made, however, and the networkException should therefore be inspected for the failure reasons and whether or not the request can be retried.

Parameters

networkException

The underlying cause of the failure

See also

Constructors

Link copied to clipboard
constructor(networkException: NetworkException)

Properties

Link copied to clipboard

Functions

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