| Package | Description |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.error | |
| com.alipay.sofa.jraft.rpc |
| Modifier and Type | Method and Description |
|---|---|
RaftError |
Status.getRaftError()
Get raft error from error code.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Status.setError(RaftError error,
String fmt,
Object... args)
Set raft error and error msg.
|
| Constructor and Description |
|---|
Status(RaftError raftError,
String fmt,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
static RaftError |
RaftError.forNumber(int value) |
static RaftError |
RaftError.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RaftError[] |
RaftError.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
RaftException(EnumOutter.ErrorType type,
RaftError err,
String fmt,
Object... args) |
| Modifier and Type | Method and Description |
|---|---|
default com.google.protobuf.Message |
RpcResponseFactory.newResponse(com.google.protobuf.Message parent,
RaftError error,
String fmt,
Object... args)
Creates an error response with parameters.
|
Copyright © 2024. All rights reserved.