public static enum ErrorCollection.Reason extends Enum<ErrorCollection.Reason>
Enum Constant and Description |
---|
CONFLICT
Conflict, because the value already exists.
|
FORBIDDEN
Not allowed to perform function.
|
NOT_FOUND
That which you are seeking is not here.
|
NOT_LOGGED_IN
The user is not logged in.
|
PRECONDITION_FAILED
Header value mismatch
|
SERVER_ERROR
We are all broken.
|
VALIDATION_FAILED
Data validation failed.
|
Modifier and Type | Method and Description |
---|---|
int |
getHttpStatusCode() |
static ErrorCollection.Reason |
getWorstReason(Collection<ErrorCollection.Reason> reasons) |
static ErrorCollection.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCollection.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCollection.Reason NOT_FOUND
public static final ErrorCollection.Reason NOT_LOGGED_IN
public static final ErrorCollection.Reason FORBIDDEN
public static final ErrorCollection.Reason VALIDATION_FAILED
public static final ErrorCollection.Reason CONFLICT
public static final ErrorCollection.Reason SERVER_ERROR
public static final ErrorCollection.Reason PRECONDITION_FAILED
public static ErrorCollection.Reason[] values()
for (ErrorCollection.Reason c : ErrorCollection.Reason.values()) System.out.println(c);
public static ErrorCollection.Reason 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 int getHttpStatusCode()
public static ErrorCollection.Reason getWorstReason(Collection<ErrorCollection.Reason> reasons)
Copyright © 2002-2017 Atlassian. All Rights Reserved.