Package org.whiteflagprotocol.java
Enum Class WfException.ErrorType
- All Implemented Interfaces:
Serializable
,Comparable<WfException.ErrorType>
,Constable
- Enclosing class:
- WfException
Whiteflag protocol error categories
These error categories are used by the WfException
class to
specify the type of error.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionWhiteflag authentication errorWhiteflag cryptographic errorWhiteflag message format or field value errorGeneric Whiteflag protocol errorIncorrect or missing Whiteflag message metadataWhiteflag message reference errorWhiteflag digital signature error -
Method Summary
Modifier and TypeMethodDescriptionstatic WfException.ErrorType
Returns the enum constant of this class with the specified name.static WfException.ErrorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WF_GENERIC_ERROR
Generic Whiteflag protocol error -
WF_METADATA_ERROR
Incorrect or missing Whiteflag message metadata -
WF_FORMAT_ERROR
Whiteflag message format or field value error -
WF_REFERENCE_ERROR
Whiteflag message reference error -
WF_AUTH_ERROR
Whiteflag authentication error -
WF_SIGN_ERROR
Whiteflag digital signature error -
WF_CRYPTO_ERROR
Whiteflag cryptographic error
-
-
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
-