//NetworkResponseAdapter/com.haroldadmin.cnradapter/NetworkResponse/Error
Error
[jvm]\ interface Error<S, E> : NetworkResponse<S, E>
The result of a failed network request.
A failed network request can either be due to a non-2xx response code and contain an error body (ServerError), or due to a connectivity error (NetworkError), or due to an unknown error (UnknownError).
Properties
Name | Summary |
---|---|
body | [jvm] abstract val body: E? The body of the failed network request, if available. |
error | [jvm] abstract val error: Throwable? The underlying error of the failed network request, if available. |
Inheritors
Name |
---|
ServerError |
NetworkError |
UnknownError |