| 程序包 | 说明 |
|---|---|
| com.tencent.polaris.api.exception |
| 限定符和类型 | 方法和说明 |
|---|---|
static ErrorCode |
ServerCodes.convertServerErrorToRpcError(int code)
将server错误码转换为内部服务错误
|
ErrorCode |
PolarisException.getCode() |
static ErrorCode |
ErrorCode.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ErrorCode[] |
ErrorCode.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 构造器和说明 |
|---|
PolarisException(ErrorCode code) |
PolarisException(ErrorCode code,
String message) |
PolarisException(ErrorCode code,
String message,
Throwable cause) |
RetriableException(ErrorCode code,
String message) |
RetriableException(ErrorCode code,
String message,
Throwable cause) |
Copyright © 2022. All rights reserved.