//NetworkResponseAdapter/com.haroldadmin.cnradapter/NetworkResponse/UnknownError
UnknownError
[jvm]\ data class UnknownError<S, E>(error: Throwable, response: Response<*>?) : NetworkResponse.Error<S, E>
Result of an unknown error during a network request (e.g. Serialization errors)
Constructors
UnknownError | [jvm] fun UnknownError(error: Throwable, response: Response<*>?) |
Properties
Name | Summary |
---|---|
body | [jvm] open override val body: E? = null Always null for an UnknownError |
code | [jvm] val code: Int? The status code returned by the server. |
error | [jvm] open override val error: Throwable The underlying error of the failed network request, if available. |
headers | [jvm] val headers: Headers? The headers returned by the server. |
response | [jvm] val response: Response<*>? |