Package io.atomix.raft
Class RaftException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.atomix.raft.RaftException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
RaftException.AppendFailureException,RaftException.ConfigurationException,RaftException.NoLeader,RaftException.ProtocolException
Base Raft protocol exception.
This is the base exception type for all Raft protocol exceptions. Protocol exceptions must be
associated with a RaftError.Type which is used for more efficient serialization.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRaftException(RaftError.Type type, String message, Object... args) protectedRaftException(RaftError.Type type, Throwable cause) protectedRaftException(RaftError.Type type, Throwable cause, String message, Object... args) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RaftException
-
RaftException
-
RaftException
-
-
Method Details
-
getType
Returns the exception type.- Returns:
- The exception type.
-