public enum ErrorCode extends Enum<ErrorCode>
Enum Constant and Description |
---|
AUTHENTICATION_BACKEND_ERROR |
BAD_REQUEST |
CONFIGURATION_ERROR |
INTERNAL_SERVICE_ERROR |
MISSING_CLIENT_ERROR |
NOT_AUTHENTICATED |
PLUGIN_ERROR |
SEARCH_BACKEND_IO_ERROR |
TARGET_CONFIGURATION_BACKEND_ERROR |
TIME_OUT |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
int |
getValue() |
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 NOT_AUTHENTICATED
public static final ErrorCode INTERNAL_SERVICE_ERROR
public static final ErrorCode BAD_REQUEST
public static final ErrorCode PLUGIN_ERROR
public static final ErrorCode CONFIGURATION_ERROR
public static final ErrorCode SEARCH_BACKEND_IO_ERROR
public static final ErrorCode TARGET_CONFIGURATION_BACKEND_ERROR
public static final ErrorCode AUTHENTICATION_BACKEND_ERROR
public static final ErrorCode TIME_OUT
public static final ErrorCode MISSING_CLIENT_ERROR
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 nullpublic int getValue()
public String getMessage()
Copyright © 2008-2015 Index Data. All Rights Reserved.