public class NacosException extends Exception
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
BAD_GATEWAY
bad gateway(路由异常,如nginx后面的Server挂掉).
|
static int |
CLIENT_INVALID_PARAM
invalid param(参数错误).
|
static int |
CLIENT_OVER_THRESHOLD
over client threshold(超过server端的限流阈值).
|
static int |
CONFLICT
conflict(写并发冲突).
|
static int |
HTTP_CLIENT_ERROR_CODE
http client error code,
ome exceptions that occurred when the use the Nacos RestTemplate and Nacos AsyncRestTemplate.
|
static int |
INVALID_PARAM
invalid param(参数错误).
|
static int |
NO_RIGHT
no right(鉴权失败).
|
static int |
NOT_FOUND
not found.
|
static int |
OVER_THRESHOLD
over threshold(超过server端的限流阈值).
|
static int |
RESOURCE_NOT_FOUND |
static int |
SERVER_ERROR
server error(server异常,如超时).
|
| 构造器和说明 |
|---|
NacosException() |
NacosException(int errCode,
String errMsg) |
NacosException(int errCode,
String errMsg,
Throwable throwable) |
NacosException(int errCode,
Throwable throwable) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getErrCode() |
String |
getErrMsg() |
void |
setCauseThrowable(Throwable throwable) |
void |
setErrCode(int errCode) |
void |
setErrMsg(String errMsg) |
String |
toString() |
public static final int CLIENT_INVALID_PARAM
public static final int CLIENT_OVER_THRESHOLD
public static final int INVALID_PARAM
public static final int NO_RIGHT
public static final int NOT_FOUND
public static final int CONFLICT
public static final int SERVER_ERROR
public static final int BAD_GATEWAY
public static final int OVER_THRESHOLD
public static final int RESOURCE_NOT_FOUND
public static final int HTTP_CLIENT_ERROR_CODE
public NacosException()
public NacosException(int errCode,
String errMsg)
public NacosException(int errCode,
Throwable throwable)
Copyright © 2018–2020 Alibaba Group. All rights reserved.