public class NacosException extends Exception
| Modifier and Type | Field and Description |
|---|---|
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 |
INVALID_PARAM
invalid param(参数错误)
|
static int |
NO_RIGHT
no right(鉴权失败)
|
static int |
OVER_THRESHOLD
over threshold(超过server端的限流阈值)
|
static int |
SERVER_ERROR
server error(server异常,如超时)
|
| Constructor and Description |
|---|
NacosException() |
NacosException(int errCode,
String errMsg) |
NacosException(int errCode,
String errMsg,
Throwable throwable) |
NacosException(int errCode,
Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrCode() |
String |
getErrMsg() |
void |
setCauseThrowable(Throwable throwable) |
void |
setErrCode(int errCode) |
void |
setErrMsg(String errMsg) |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic 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 CONFLICT
public static final int SERVER_ERROR
public static final int BAD_GATEWAY
public static final int OVER_THRESHOLD
public NacosException()
public NacosException(int errCode,
String errMsg)
public NacosException(int errCode,
Throwable throwable)
Copyright © 2018–2019 Alibaba Group. All rights reserved.