Package io.atomix.raft
Enum Class RaftError.Type
- All Implemented Interfaces:
Serializable,Comparable<RaftError.Type>,Constable
- Enclosing class:
- RaftError
Raft error types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUser application error.Closed session error.Write application error.Configuration error.Illegal member state error.No leader error.Internal error.Read application error.Unavailable service error.Unknown client error.Unknown state machine error.Unknown session error. -
Method Summary
Modifier and TypeMethodDescriptionstatic RaftError.TypeReturns the enum constant of this class with the specified name.static RaftError.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_LEADER
No leader error. -
QUERY_FAILURE
Read application error. -
COMMAND_FAILURE
Write application error. -
APPLICATION_ERROR
User application error. -
ILLEGAL_MEMBER_STATE
Illegal member state error. -
UNKNOWN_CLIENT
Unknown client error. -
UNKNOWN_SESSION
Unknown session error. -
UNKNOWN_SERVICE
Unknown state machine error. -
CLOSED_SESSION
Closed session error. -
PROTOCOL_ERROR
Internal error. -
CONFIGURATION_ERROR
Configuration error. -
UNAVAILABLE
Unavailable service 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
-