public enum ElasticsearchErrorCode extends Enum<ElasticsearchErrorCode> implements ErrorCodeSupplier
| Enum Constant and Description |
|---|
ELASTICSEARCH_CONNECTION_ERROR |
ELASTICSEARCH_INVALID_RESPONSE |
ELASTICSEARCH_MAX_HITS_EXCEEDED |
ELASTICSEARCH_QUERY_FAILURE |
ELASTICSEARCH_SSL_INITIALIZATION_FAILURE |
ELASTICSEARCH_TYPE_MISMATCH |
| Modifier and Type | Method and Description |
|---|---|
ErrorCode |
toErrorCode() |
static ElasticsearchErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ElasticsearchErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElasticsearchErrorCode ELASTICSEARCH_CONNECTION_ERROR
public static final ElasticsearchErrorCode ELASTICSEARCH_INVALID_RESPONSE
public static final ElasticsearchErrorCode ELASTICSEARCH_SSL_INITIALIZATION_FAILURE
public static final ElasticsearchErrorCode ELASTICSEARCH_MAX_HITS_EXCEEDED
public static final ElasticsearchErrorCode ELASTICSEARCH_TYPE_MISMATCH
public static final ElasticsearchErrorCode ELASTICSEARCH_QUERY_FAILURE
public static ElasticsearchErrorCode[] values()
for (ElasticsearchErrorCode c : ElasticsearchErrorCode.values()) System.out.println(c);
public static ElasticsearchErrorCode 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 ErrorCode toErrorCode()
toErrorCode in interface ErrorCodeSupplierCopyright © 2012–2023. All rights reserved.