Enum Class RaftError.Type

java.lang.Object
java.lang.Enum<RaftError.Type>
io.atomix.raft.RaftError.Type
All Implemented Interfaces:
Serializable, Comparable<RaftError.Type>, Constable
Enclosing class:
RaftError

public static enum RaftError.Type extends Enum<RaftError.Type>
Raft error types.
  • Enum Constant Details

    • NO_LEADER

      public static final RaftError.Type NO_LEADER
      No leader error.
    • QUERY_FAILURE

      public static final RaftError.Type QUERY_FAILURE
      Read application error.
    • COMMAND_FAILURE

      public static final RaftError.Type COMMAND_FAILURE
      Write application error.
    • APPLICATION_ERROR

      public static final RaftError.Type APPLICATION_ERROR
      User application error.
    • ILLEGAL_MEMBER_STATE

      public static final RaftError.Type ILLEGAL_MEMBER_STATE
      Illegal member state error.
    • UNKNOWN_CLIENT

      public static final RaftError.Type UNKNOWN_CLIENT
      Unknown client error.
    • UNKNOWN_SESSION

      public static final RaftError.Type UNKNOWN_SESSION
      Unknown session error.
    • UNKNOWN_SERVICE

      public static final RaftError.Type UNKNOWN_SERVICE
      Unknown state machine error.
    • CLOSED_SESSION

      public static final RaftError.Type CLOSED_SESSION
      Closed session error.
    • PROTOCOL_ERROR

      public static final RaftError.Type PROTOCOL_ERROR
      Internal error.
    • CONFIGURATION_ERROR

      public static final RaftError.Type CONFIGURATION_ERROR
      Configuration error.
    • UNAVAILABLE

      public static final RaftError.Type UNAVAILABLE
      Unavailable service error.
  • Method Details

    • values

      public static RaftError.Type[] 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

      public static RaftError.Type valueOf(String name)
      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 name
      NullPointerException - if the argument is null