Package com.atlassian.jira.util
Enum Class ErrorCollection.Reason
- All Implemented Interfaces:
Serializable
,Comparable<ErrorCollection.Reason>
,Constable
- Enclosing interface:
- ErrorCollection
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConflict, because the value already exists.Not allowed to perform function.That which you are seeking is not here.The user is not logged in.Header value mismatchWe are all broken.Data validation failed. -
Method Summary
Modifier and TypeMethodDescriptionint
static ErrorCollection.Reason
getWorstReason
(Collection<ErrorCollection.Reason> reasons) static ErrorCollection.Reason
Returns the enum constant of this class with the specified name.static ErrorCollection.Reason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_FOUND
That which you are seeking is not here. -
NOT_LOGGED_IN
The user is not logged in. -
FORBIDDEN
Not allowed to perform function. -
VALIDATION_FAILED
Data validation failed. -
CONFLICT
Conflict, because the value already exists. -
SERVER_ERROR
We are all broken. -
PRECONDITION_FAILED
Header value mismatch
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getHttpStatusCode
public int getHttpStatusCode() -
getWorstReason
-