Package org.apache.solr.common
Enum SolrException.ErrorCode
- java.lang.Object
- 
- java.lang.Enum<SolrException.ErrorCode>
- 
- org.apache.solr.common.SolrException.ErrorCode
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<SolrException.ErrorCode>
 - Enclosing class:
- SolrException
 
 public static enum SolrException.ErrorCode extends Enum<SolrException.ErrorCode> 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 SummaryEnum Constants Enum Constant Description BAD_REQUESTCONFLICTFORBIDDENINVALID_STATENOT_FOUNDSERVER_ERRORSERVICE_UNAVAILABLETOO_MANY_REQUESTSUNAUTHORIZEDUNKNOWNUNSUPPORTED_MEDIA_TYPE
 - 
Field SummaryFields Modifier and Type Field Description intcode
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static SolrException.ErrorCodegetErrorCode(int c)static SolrException.ErrorCodevalueOf(String name)Returns 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 Detail- 
BAD_REQUESTpublic static final SolrException.ErrorCode BAD_REQUEST 
 - 
UNAUTHORIZEDpublic static final SolrException.ErrorCode UNAUTHORIZED 
 - 
FORBIDDENpublic static final SolrException.ErrorCode FORBIDDEN 
 - 
NOT_FOUNDpublic static final SolrException.ErrorCode NOT_FOUND 
 - 
CONFLICTpublic static final SolrException.ErrorCode CONFLICT 
 - 
UNSUPPORTED_MEDIA_TYPEpublic static final SolrException.ErrorCode UNSUPPORTED_MEDIA_TYPE 
 - 
TOO_MANY_REQUESTSpublic static final SolrException.ErrorCode TOO_MANY_REQUESTS 
 - 
SERVER_ERRORpublic static final SolrException.ErrorCode SERVER_ERROR 
 - 
SERVICE_UNAVAILABLEpublic static final SolrException.ErrorCode SERVICE_UNAVAILABLE 
 - 
INVALID_STATEpublic static final SolrException.ErrorCode INVALID_STATE 
 - 
UNKNOWNpublic static final SolrException.ErrorCode UNKNOWN 
 
- 
 - 
Method Detail- 
valuespublic static SolrException.ErrorCode[] 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 (SolrException.ErrorCode c : SolrException.ErrorCode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SolrException.ErrorCode 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 name
- NullPointerException- if the argument is null
 
 - 
getErrorCodepublic static SolrException.ErrorCode getErrorCode(int c) 
 
- 
 
-