public enum ErrorCode extends Enum<ErrorCode>
| Enum Constant and Description |
|---|
ACCOUNT_NOT_FOUND |
CONFIGURATION_ERROR |
INVALID_OPERATION |
INVALID_RESPONSE |
MAX_USERS_REACHED |
NOT_FOUND |
OPERATION_CANCELLED |
TRANSPORT_ERROR |
UNAUTHORIZED |
UNKNOWN_ERROR |
USER_ALREADY_EXISTS |
USER_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode USER_ALREADY_EXISTS
public static final ErrorCode USER_NOT_FOUND
public static final ErrorCode ACCOUNT_NOT_FOUND
public static final ErrorCode MAX_USERS_REACHED
public static final ErrorCode UNAUTHORIZED
public static final ErrorCode INVALID_OPERATION
public static final ErrorCode OPERATION_CANCELLED
public static final ErrorCode CONFIGURATION_ERROR
public static final ErrorCode INVALID_RESPONSE
public static final ErrorCode TRANSPORT_ERROR
public static final ErrorCode UNKNOWN_ERROR
public static final ErrorCode NOT_FOUND
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode 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 © 2021 Pivotal Software, Inc.. All rights reserved.