Package com.alibaba.nacos.api.exception
Class NacosException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alibaba.nacos.api.exception.NacosException
-
- All Implemented Interfaces:
Serializable
public class NacosException extends Exception
Nacos Exception- Author:
- Nacos
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intBAD_GATEWAYbad gateway(路由异常,如nginx后面的Server挂掉)static intCLIENT_INVALID_PARAMinvalid param(参数错误)static intCLIENT_OVER_THRESHOLDover client threshold(超过server端的限流阈值)static intCONFLICTconflict(写并发冲突)static intINVALID_PARAMinvalid param(参数错误)static intNO_RIGHTno right(鉴权失败)static intOVER_THRESHOLDover threshold(超过server端的限流阈值)static intSERVER_ERRORserver error(server异常,如超时)
-
Constructor Summary
Constructors Constructor Description NacosException()NacosException(int errCode, String errMsg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrCode()StringgetErrMsg()voidsetErrCode(int errCode)voidsetErrMsg(String errMsg)StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Field Detail
-
CLIENT_INVALID_PARAM
public static final int CLIENT_INVALID_PARAM
invalid param(参数错误)- See Also:
- Constant Field Values
-
CLIENT_OVER_THRESHOLD
public static final int CLIENT_OVER_THRESHOLD
over client threshold(超过server端的限流阈值)- See Also:
- Constant Field Values
-
INVALID_PARAM
public static final int INVALID_PARAM
invalid param(参数错误)- See Also:
- Constant Field Values
-
NO_RIGHT
public static final int NO_RIGHT
no right(鉴权失败)- See Also:
- Constant Field Values
-
CONFLICT
public static final int CONFLICT
conflict(写并发冲突)- See Also:
- Constant Field Values
-
SERVER_ERROR
public static final int SERVER_ERROR
server error(server异常,如超时)- See Also:
- Constant Field Values
-
BAD_GATEWAY
public static final int BAD_GATEWAY
bad gateway(路由异常,如nginx后面的Server挂掉)- See Also:
- Constant Field Values
-
OVER_THRESHOLD
public static final int OVER_THRESHOLD
over threshold(超过server端的限流阈值)- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NacosException
public NacosException()
-
NacosException
public NacosException(int errCode, String errMsg)
-
-