| Package | Description |
|---|---|
| com.tencent.polaris.api.exception |
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
ServerCodes.convertServerErrorToRpcError(int code)
将server错误码转换为内部服务错误
|
ErrorCode |
PolarisException.getCode() |
static ErrorCode |
ErrorCode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
ErrorCode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
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 © 2023. All rights reserved.