@Deprecated public enum ServiceErrorType extends Enum<ServiceErrorType>
Enum Constant and Description |
---|
DUPLICATE
Deprecated.
Duplicate request identifier.
|
INVALID
Deprecated.
Request invalid
|
SERVICE
Deprecated.
A problem has occurred whilst executing the service at the server.
|
TIMEOUT
Deprecated.
Request timed out
|
UNKNOWN
Deprecated.
Unknown error type
|
USER
Deprecated.
Error reported by user written service handler.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Deprecated.
Returns String code.
|
static ServiceErrorType |
parse(String code)
Deprecated.
Parse a ServiceError from String representation.
|
static ServiceErrorType |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static ServiceErrorType[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceErrorType SERVICE
public static final ServiceErrorType DUPLICATE
public static final ServiceErrorType TIMEOUT
public static final ServiceErrorType INVALID
public static final ServiceErrorType USER
public static final ServiceErrorType UNKNOWN
public static ServiceErrorType[] values()
for (ServiceErrorType c : ServiceErrorType.values()) System.out.println(c);
public static ServiceErrorType 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 nullpublic String getCode()
public static ServiceErrorType parse(String code)
code
- string codeUNKNOWN
is returned for an unknown
codeCopyright © 2016 Push Technology Ltd. All Rights Reserved.