public static enum SolrException.ErrorCode extends Enum<SolrException.ErrorCode>
| 枚举常量和说明 |
|---|
BAD_REQUEST |
CONFLICT |
FORBIDDEN |
INVALID_STATE |
NOT_FOUND |
SERVER_ERROR |
SERVICE_UNAVAILABLE |
UNAUTHORIZED |
UNKNOWN |
UNSUPPORTED_MEDIA_TYPE |
| 限定符和类型 | 字段和说明 |
|---|---|
int |
code |
| 限定符和类型 | 方法和说明 |
|---|---|
static SolrException.ErrorCode |
getErrorCode(int c) |
static SolrException.ErrorCode |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SolrException.ErrorCode[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static SolrException.ErrorCode getErrorCode(int c)
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.