Package org.apache.solr.common
Enum SolrException.ErrorCode
- All Implemented Interfaces:
Serializable,Comparable<SolrException.ErrorCode>
- Enclosing class:
SolrException
This list of valid HTTP Status error codes that Solr may return when there is a "Server Side"
error.
- Since:
- solr 1.2
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SolrException.ErrorCodegetErrorCode(int c) static SolrException.ErrorCodeReturns the enum constant of this type with the specified name.static SolrException.ErrorCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BAD_REQUEST
-
UNAUTHORIZED
-
FORBIDDEN
-
NOT_FOUND
-
CONFLICT
-
UNSUPPORTED_MEDIA_TYPE
-
TOO_MANY_REQUESTS
-
SERVER_ERROR
-
SERVICE_UNAVAILABLE
-
GATEWAY_TIMEOUT
-
INVALID_STATE
-
UNKNOWN
-
-
Field Details
-
code
public final int code
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getErrorCode
-