Enum ErrorCode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classErrorCode.CompanionCompanion object for ErrorCode providing serialization and deserialization capabilities.
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_UNAVAILABLE_ERRORNetwork is unavailable.
UNKNOWN_ERRORAn unknown error occurred.
NETWORK_IO_ERRORA network I/O error occurred.
OUT_OF_MEMORY_ERRORAn out of memory error occurred.
INVALID_ENCRYPTED_RESPONSE_RECEIVEDAn invalid encrypted response was received.
RESPONSE_EXCEEDS_SPECIFIED_SIZE_LIMITThe response size exceeds the specified limit.
GZIP_DECOMPRESSION_FAILEDGZIP decompression of the response failed.
BAD_REQUESTThe request was a bad request (HTTP 400-499).
GDPR_COMPLIANCE_ENFORCEDGDPR compliance is enforced, and the request was blocked.
GENERIC_HTTP_2XXA generic HTTP 2xx success response that is not specifically HTTP_OK.
RESPONSE_PARSING_ERRORAn error occurred while parsing the response.
RETRY_ATTEMPTEDA retry attempt was made for the request.
NETWORK_UNAVAILABLE_CONTEXT_LOSSNetwork is unavailable due to context loss.
NETWORK_UNAVAILABLE_IDLE_MODENetwork is unavailable because the device is in idle mode.
NETWORK_UNAVAILABLE_NO_CONNECTION_M_OR_ABOVENetwork is unavailable, no connection on Android M or above.
NETWORK_UNAVAILABLE_NO_CONNECTION_BELOW_MNetwork is unavailable, no connection on Android versions below M.
NETWORK_UNAVAILABLE_EXCEPTIONNetwork is unavailable due to an exception.
NETWORK_PREPARE_FAILFailed to prepare the network request.
NETWORK_REQUEST_GENERIC_DROPPED_BY_INTERCEPTORNetwork request was dropped by an interceptor for a generic reason.
NETWORK_REQUEST_CANCELLEDNetwork request was cancelled.
NETWORK_REQUEST_EXCEPTIONAn exception occurred during the network request.
NETWORK_UNAVAILABLE_CUSTOM_VALIDATORNetwork is unavailable due to a custom validator.
NETWORK_REDIRECT_MALFORMEDNetwork redirect was malformed, possibly due to an invalid URL.
NO_SUCH_ELEMENT_EXCEPTIONNo routes available for network connection.
COROUTINE_TIMEOUTCoroutine timeout - request exceeded the allowed time limit.
INVALID_URLThe request URL is invalid (empty, blank, or missing http/https scheme).
HTTP_NO_CONTENTHTTP 204 No Content.
HTTP_NOT_MODIFIEDHTTP 304 Not Modified.
HTTP_SEE_OTHERHTTP 303 See Other.
HTTP_SERVER_NOT_FOUNDHTTP 404 Not Found.
HTTP_MOVED_TEMPHTTP 302 Moved Temporarily.
HTTP_INTERNAL_SERVER_ERRORHTTP 500 Internal Server Error.
HTTP_NOT_IMPLEMENTEDHTTP 501 Not Implemented.
HTTP_BAD_GATEWAYHTTP 502 Bad Gateway.
HTTP_SERVER_NOT_AVAILABLEHTTP 503 Service Unavailable.
HTTP_GATEWAY_TIMEOUTHTTP 504 Gateway Timeout.
HTTP_VERSION_NOT_SUPPORTEDHTTP 505 HTTP Version Not Supported.
HTTP_UNAUTHORISEDHTTP 401 Unauthorized.
SERVER_ERROR_END_CODELAST SERVER ERROR CODE.
-
Method Summary
Modifier and Type Method Description final ErrorCodevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<ErrorCode>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetCode()The integer value of the error code. final EnumEntries<ErrorCode>getEntries()Enum class representing various error codes that can occur during a network operation. -
-
Method Detail
-
valueOf
final ErrorCode valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<ErrorCode> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getEntries
final EnumEntries<ErrorCode> getEntries()
Enum class representing various error codes that can occur during a network operation. Each error code has an integer value associated with it.
-
-
-
-