Package net.voidnote
Enum Class VoidNoteException.Kind
- All Implemented Interfaces:
Serializable,Comparable<VoidNoteException.Kind>,Constable
- Enclosing class:
VoidNoteException
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOther server-side or crypto error.Ciphertext tampered, or wrong key.Token string is not 64 hex chars.HTTP transport failure.404 — note or stream not found, or already destroyed.401 — invalid or missing API key. -
Method Summary
Modifier and TypeMethodDescriptionstatic VoidNoteException.KindReturns the enum constant of this class with the specified name.static VoidNoteException.Kind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_FOUND
404 — note or stream not found, or already destroyed. -
UNAUTHORIZED
401 — invalid or missing API key. -
DECRYPTION_FAILED
Ciphertext tampered, or wrong key. -
NETWORK
HTTP transport failure. -
API
Other server-side or crypto error. -
INVALID_TOKEN
Token string is not 64 hex chars.
-
-
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
-