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