| 程序包 | 说明 |
|---|---|
| com.alipay.sofa.jraft | |
| com.alipay.sofa.jraft.error | |
| com.alipay.sofa.jraft.rpc |
| 限定符和类型 | 方法和说明 |
|---|---|
RaftError |
Status.getRaftError()
Get raft error from error code.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Status.setError(RaftError error,
String fmt,
Object... args)
Set raft error and error msg.
|
| 构造器和说明 |
|---|
Status(RaftError raftError,
String fmt,
Object... args) |
| 限定符和类型 | 方法和说明 |
|---|---|
static RaftError |
RaftError.forNumber(int value) |
static RaftError |
RaftError.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RaftError[] |
RaftError.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 构造器和说明 |
|---|
RaftException(EnumOutter.ErrorType type,
RaftError err,
String fmt,
Object... args) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2021. All rights reserved.