public static enum DocumentStoreException.Type extends Enum<DocumentStoreException.Type>
| Enum Constant and Description |
|---|
GENERIC
A generic type of
DocumentStoreException. |
TRANSIENT
A
DocumentStoreException caused by a transient problem. |
| Modifier and Type | Method and Description |
|---|---|
static DocumentStoreException.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentStoreException.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentStoreException.Type GENERIC
DocumentStoreException. This type is used
when no explicit type is given when a DocumentStoreException
is constructed.public static final DocumentStoreException.Type TRANSIENT
DocumentStoreException caused by a transient problem. E.g.
a network issue. This type of exception indicates a future invocation
of the same operation may succeed if the underlying problem gets
resolved.public static DocumentStoreException.Type[] values()
for (DocumentStoreException.Type c : DocumentStoreException.Type.values()) System.out.println(c);
public static DocumentStoreException.Type 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 nullCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.