UnexpectedException

class UnexpectedException @JvmOverloads constructor(cause: Throwable?, val httpResponse: HttpResponse? = null) : NetworkException

Indicates that a network request failed for an unknown reason. It is therefore unknown whether it is safe to retry the request, so it is deemed not safe to retry.

Parameters

cause

The underlying cause of the failure, if available

httpResponse

The response, if one was received before the failure

Constructors

Link copied to clipboard
constructor(cause: Throwable?, httpResponse: HttpResponse? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
Link copied to clipboard
open val message: String?

Functions

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