public static enum SolrException.ErrorCode extends Enum<SolrException.ErrorCode>
| Enum Constant and Description |
|---|
BAD_REQUEST |
CONFLICT |
FORBIDDEN |
INVALID_STATE |
NOT_FOUND |
SERVER_ERROR |
SERVICE_UNAVAILABLE |
UNAUTHORIZED |
UNKNOWN |
UNSUPPORTED_MEDIA_TYPE |
| Modifier and Type | Field and Description |
|---|---|
int |
code |
| Modifier and Type | Method and Description |
|---|---|
static SolrException.ErrorCode |
getErrorCode(int c) |
static SolrException.ErrorCode |
valueOf(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.
|
public static final SolrException.ErrorCode BAD_REQUEST
public static final SolrException.ErrorCode UNAUTHORIZED
public static final SolrException.ErrorCode FORBIDDEN
public static final SolrException.ErrorCode NOT_FOUND
public static final SolrException.ErrorCode CONFLICT
public static final SolrException.ErrorCode UNSUPPORTED_MEDIA_TYPE
public static final SolrException.ErrorCode SERVER_ERROR
public static final SolrException.ErrorCode SERVICE_UNAVAILABLE
public static final SolrException.ErrorCode INVALID_STATE
public static final SolrException.ErrorCode UNKNOWN
public static SolrException.ErrorCode[] values()
for (SolrException.ErrorCode c : SolrException.ErrorCode.values()) System.out.println(c);
public static SolrException.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 static SolrException.ErrorCode getErrorCode(int c)
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.