-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum HttpException.Kind extends Enum<HttpException.Kind>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classHttpException.Kind.Companion
-
Enum Constant Summary
Enum Constants Enum Constant Description MalformedRequestThe provided request was not valid.
MalformedResponseThe received response couldn't be decoded.
TimeoutThe client, server or gateways timed out.
BadRequest(400) The server cannot or will not process the request due to an apparent client error.
Unauthorized(401) Authentication is required and has failed or has not yet been provided.
Forbidden(403) The server refuses the action, probably because we don't have the necessary permissions.
NotFound(404) The requested resource could not be found.
ClientError(4xx) Other client errors
ServerError(5xx) Server errors
OfflineThe device is offline.
CancelledThe request was cancelled.
OtherAn error whose kind is not recognized.
-
Method Summary
Modifier and Type Method Description final HttpException.KindvalueOf(String value)Returns the enum constant of this type with the specified name. final Array<HttpException.Kind>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetUserMessageId()-
-
Method Detail
-
valueOf
final HttpException.Kind 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<HttpException.Kind> 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.
-
getUserMessageId
final Integer getUserMessageId()
-
-
-
-