public enum ClientErrorCode extends Enum<ClientErrorCode>
BrightpearlHttpExceptions
whenever possible. There are two classes of error included - transport errors, where no response was received from
the Brightpearl API, and response errors, where the response from Brightpearl was either corrupt, unexpectedly empty
or could not be parsed into an object of the expected type.| Enum Constant and Description |
|---|
CONNECTION_TIMEOUT |
EMPTY_RESPONSE |
INVALID_RESPONSE_FORMAT |
INVALID_RESPONSE_TYPE |
NO_RESPONSE |
OTHER_TRANSPORT_ERROR |
READ_TIMEOUT |
SOCKET_ERROR |
SOCKET_TIMEOUT |
UNKNOWN_HOST |
| Modifier and Type | Method and Description |
|---|---|
static ClientErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClientErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClientErrorCode EMPTY_RESPONSE
public static final ClientErrorCode INVALID_RESPONSE_FORMAT
public static final ClientErrorCode INVALID_RESPONSE_TYPE
public static final ClientErrorCode NO_RESPONSE
public static final ClientErrorCode UNKNOWN_HOST
public static final ClientErrorCode CONNECTION_TIMEOUT
public static final ClientErrorCode SOCKET_ERROR
public static final ClientErrorCode SOCKET_TIMEOUT
public static final ClientErrorCode READ_TIMEOUT
public static final ClientErrorCode OTHER_TRANSPORT_ERROR
public static ClientErrorCode[] values()
for (ClientErrorCode c : ClientErrorCode.values()) System.out.println(c);
public static ClientErrorCode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullCopyright © 2014. All Rights Reserved.