类 NacosException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.alibaba.nacos.api.exception.NacosException
- 所有已实现的接口:
Serializable
- 直接已知子类:
NacosApiException
Nacos Exception.
- 作者:
- Nacos
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final intbad gateway(路由异常,如nginx后面的Server挂掉).static final intclient disconnect.static final intclient error(client异常,返回给服务端).static final intinvalid param(参数错误).static final intover client threshold(超过client端的限流阈值).static final intconfig already exists(配置已存在).static final intconflict(写并发冲突).static final inthttp client error code, ome exceptions that occurred when there use the Nacos RestTemplate and Nacos AsyncRestTemplate.static final intinvalid param(参数错误).static final intServer is not started.static final intNo Handler Found.static final intno right(鉴权失败).static final intnot found.static final intover threshold(超过server端的限流阈值).static final intstatic final intserver error(server异常,如超时).static final intserver not implemented(server不支持该请求,可能该版本未实现功能,或请求了错误的API).static final intConnection is not registered. -
构造器概要
构造器构造器说明NacosException(int errCode, String errMsg) NacosException(int errCode, String errMsg, Throwable throwable) NacosException(int errCode, Throwable throwable) -
方法概要
修饰符和类型方法说明intvoidsetCauseThrowable(Throwable throwable) voidsetErrCode(int errCode) voidtoString()
-
字段详细资料
-
CLIENT_INVALID_PARAM
public static final int CLIENT_INVALID_PARAMinvalid param(参数错误).- 另请参阅:
-
CLIENT_DISCONNECT
public static final int CLIENT_DISCONNECTclient disconnect.- 另请参阅:
-
CLIENT_OVER_THRESHOLD
public static final int CLIENT_OVER_THRESHOLDover client threshold(超过client端的限流阈值).- 另请参阅:
-
INVALID_PARAM
public static final int INVALID_PARAMinvalid param(参数错误).- 另请参阅:
-
NO_RIGHT
public static final int NO_RIGHTno right(鉴权失败).- 另请参阅:
-
NOT_FOUND
public static final int NOT_FOUNDnot found.- 另请参阅:
-
CONFLICT
public static final int CONFLICTconflict(写并发冲突).- 另请参阅:
-
CONFIG_ALREADY_EXISTS
public static final int CONFIG_ALREADY_EXISTSconfig already exists(配置已存在).- 另请参阅:
-
SERVER_ERROR
public static final int SERVER_ERRORserver error(server异常,如超时).- 另请参阅:
-
SERVER_NOT_IMPLEMENTED
public static final int SERVER_NOT_IMPLEMENTEDserver not implemented(server不支持该请求,可能该版本未实现功能,或请求了错误的API).- 另请参阅:
-
CLIENT_ERROR
public static final int CLIENT_ERRORclient error(client异常,返回给服务端).- 另请参阅:
-
BAD_GATEWAY
public static final int BAD_GATEWAYbad gateway(路由异常,如nginx后面的Server挂掉).- 另请参阅:
-
OVER_THRESHOLD
public static final int OVER_THRESHOLDover threshold(超过server端的限流阈值).- 另请参阅:
-
INVALID_SERVER_STATUS
public static final int INVALID_SERVER_STATUSServer is not started.- 另请参阅:
-
UN_REGISTER
public static final int UN_REGISTERConnection is not registered.- 另请参阅:
-
NO_HANDLER
public static final int NO_HANDLERNo Handler Found.- 另请参阅:
-
RESOURCE_NOT_FOUND
public static final int RESOURCE_NOT_FOUND- 另请参阅:
-
HTTP_CLIENT_ERROR_CODE
public static final int HTTP_CLIENT_ERROR_CODEhttp client error code, ome exceptions that occurred when there use the Nacos RestTemplate and Nacos AsyncRestTemplate.- 另请参阅:
-
-
构造器详细资料
-
NacosException
public NacosException() -
NacosException
-
NacosException
-
NacosException
-
-
方法详细资料