public enum FailureReason extends java.lang.Enum<FailureReason>
Enum Constant and Description |
---|
BAD_REQUEST |
FORBIDDEN |
INTERNAL_SERVER_ERROR |
NOT_FOUND |
UNAUTHORIZED |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static FailureReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailureReason UNAUTHORIZED
public static final FailureReason BAD_REQUEST
public static final FailureReason NOT_FOUND
public static final FailureReason FORBIDDEN
public static final FailureReason INTERNAL_SERVER_ERROR
public static FailureReason[] values()
for (FailureReason c : FailureReason.values()) System.out.println(c);
public static FailureReason valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<FailureReason>