Package com.yahoo.container.protect
Enum Error
- java.lang.Object
-
- java.lang.Enum<Error>
-
- com.yahoo.container.protect.Error
-
- All Implemented Interfaces:
Serializable
,Comparable<Error>
public enum Error extends Enum<Error>
Error codes to use in ErrorMessage instances for container applications.- Author:
- Steinar Knutsen
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description int
code
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Error
valueOf(String name)
Returns the enum constant of this type with the specified name.static Error[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_BACKENDS_IN_SERVICE
public static final Error NO_BACKENDS_IN_SERVICE
-
NULL_QUERY
public static final Error NULL_QUERY
-
REQUEST_TOO_LARGE
public static final Error REQUEST_TOO_LARGE
-
ILLEGAL_QUERY
public static final Error ILLEGAL_QUERY
-
INVALID_QUERY_PARAMETER
public static final Error INVALID_QUERY_PARAMETER
-
UNSPECIFIED
public static final Error UNSPECIFIED
-
ERROR_IN_PLUGIN
public static final Error ERROR_IN_PLUGIN
-
INVALID_QUERY_TRANSFORMATION
public static final Error INVALID_QUERY_TRANSFORMATION
-
RESULT_HAS_ERRORS
public static final Error RESULT_HAS_ERRORS
-
SERVER_IS_MISCONFIGURED
public static final Error SERVER_IS_MISCONFIGURED
-
BACKEND_COMMUNICATION_ERROR
public static final Error BACKEND_COMMUNICATION_ERROR
-
NO_ANSWER_WHEN_PINGING_NODE
public static final Error NO_ANSWER_WHEN_PINGING_NODE
-
TIMEOUT
public static final Error TIMEOUT
-
EMPTY_DOCUMENTS
public static final Error EMPTY_DOCUMENTS
-
UNAUTHORIZED
public static final Error UNAUTHORIZED
-
FORBIDDEN
public static final Error FORBIDDEN
-
NOT_FOUND
public static final Error NOT_FOUND
-
BAD_REQUEST
public static final Error BAD_REQUEST
-
INTERNAL_SERVER_ERROR
public static final Error INTERNAL_SERVER_ERROR
-
INSUFFICIENT_STORAGE
public static final Error INSUFFICIENT_STORAGE
-
-
Method Detail
-
values
public static Error[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Error c : Error.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Error valueOf(String name)
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.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-