public class RaftError extends Object
Raft errors are passed on the wire in lieu of exceptions to reduce the overhead of serialization. Each error is identifiable by an error ID which is used to serialize and deserialize errors.
| Modifier and Type | Class and Description |
|---|---|
static class |
RaftError.Type
Raft error types.
|
| Constructor and Description |
|---|
RaftError(RaftError.Type type,
String message) |
| Modifier and Type | Method and Description |
|---|---|
io.atomix.primitive.PrimitiveException |
createException()
Creates a new exception for the error.
|
String |
message()
Returns the error message.
|
String |
toString() |
RaftError.Type |
type()
Returns the error type.
|
public RaftError(RaftError.Type type, String message)
public RaftError.Type type()
public String message()
public io.atomix.primitive.PrimitiveException createException()
Copyright © 2013–2018. All rights reserved.