Package com.xero.models.finance
Enum ProblemType
- All Implemented Interfaces:
Serializable,Comparable<ProblemType>,java.lang.constant.Constable
Gets or Sets ProblemType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBANK_ACCOUNT_NOT_FOUNDINTERNAL_ERRORINVALID_APPLICATIONINVALID_REQUESTNOTSETORGANISATION_NOT_FOUNDORGANISATION_OFFLINERATE_LIMIT_ERRORREQUEST_TIMEOUTSERVICE_UNAVAILABLEUNAUTHORIZED -
Method Summary
Modifier and TypeMethodDescriptionstatic ProblemTypefromValuegetValue()toString()toStringstatic ProblemTypeReturns the enum constant of this type with the specified name.static ProblemType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOTSET
NOTSET -
BANK_ACCOUNT_NOT_FOUND
BANK_ACCOUNT_NOT_FOUND -
INTERNAL_ERROR
INTERNAL_ERROR -
INVALID_APPLICATION
INVALID_APPLICATION -
INVALID_REQUEST
INVALID_REQUEST -
ORGANISATION_NOT_FOUND
ORGANISATION_NOT_FOUND -
ORGANISATION_OFFLINE
ORGANISATION_OFFLINE -
REQUEST_TIMEOUT
REQUEST_TIMEOUT -
SERVICE_UNAVAILABLE
SERVICE_UNAVAILABLE -
UNAUTHORIZED
UNAUTHORIZED -
RATE_LIMIT_ERROR
RATE_LIMIT_ERROR
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
- Returns:
- String value
-
toString
toString- Overrides:
toStringin classEnum<ProblemType>- Returns:
- String value
-
fromValue
-