Package tkrzw
Enum Class Status.Code
- All Implemented Interfaces:
Serializable
,Comparable<Status.Code>
,Constable
- Enclosing class:
- Status
Enumeration of status codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGeneric error caused by the application logic.Error that internal data are broken.Error that the operation is canceled.Error that a specific resource is duplicated.Error that the operation is infeasible.Error that a given argument is invalid.Error caused by networking failure.Error that a specific resource is not found.Error that the feature is not implemented.Error that the operation is not permitted.Error that a precondition is not met.Success.Generic error from underlying systems.Generic error whose cause is unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic Status.Code
valueOf
(int num) Returns the code enum matching an integer.static Status.Code
Returns the enum constant of this class with the specified name.static Status.Code[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
Success. -
UNKNOWN_ERROR
Generic error whose cause is unknown. -
SYSTEM_ERROR
Generic error from underlying systems. -
NOT_IMPLEMENTED_ERROR
Error that the feature is not implemented. -
PRECONDITION_ERROR
Error that a precondition is not met. -
INVALID_ARGUMENT_ERROR
Error that a given argument is invalid. -
CANCELED_ERROR
Error that the operation is canceled. -
NOT_FOUND_ERROR
Error that a specific resource is not found. -
PERMISSION_ERROR
Error that the operation is not permitted. -
INFEASIBLE_ERROR
Error that the operation is infeasible. -
DUPLICATION_ERROR
Error that a specific resource is duplicated. -
BROKEN_DATA_ERROR
Error that internal data are broken. -
NETWORK_ERROR
Error caused by networking failure. -
APPLICATION_ERROR
Generic error caused by the application logic.
-
-
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
-
valueOf
Returns the code enum matching an integer.- Parameters:
num
- The integer for the code.- Returns:
- The mathing code.
-