类 NacosApiException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.alibaba.nacos.api.exception.NacosException
-
- com.alibaba.nacos.api.exception.api.NacosApiException
-
- 所有已实现的接口:
java.io.Serializable
public class NacosApiException extends NacosException
Exception for open API.
errCode -> HTTP status code inherited fromNacosException
errMsg -> detail error message inherited fromNacosException
detailErrCode -> error code for api v2.0
errAbstract -> abstract error message for api v2.0- 作者:
- dongyafei
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 private intdetailErrCodeerror code for api v2.0.private java.lang.StringerrAbstractabstract error description for api v2.0.private static longserialVersionUIDserialVersionUID.-
从类继承的字段 com.alibaba.nacos.api.exception.NacosException
BAD_GATEWAY, CLIENT_DISCONNECT, CLIENT_ERROR, CLIENT_INVALID_PARAM, CLIENT_OVER_THRESHOLD, CONFLICT, HTTP_CLIENT_ERROR_CODE, INVALID_PARAM, INVALID_SERVER_STATUS, NO_HANDLER, NO_RIGHT, NOT_FOUND, OVER_THRESHOLD, RESOURCE_NOT_FOUND, SERVER_ERROR, UN_REGISTER
-
-
构造器概要
构造器 构造器 说明 NacosApiException()NacosApiException(int statusCode, ErrorCode errorCode, java.lang.String message)NacosApiException(int statusCode, ErrorCode errorCode, java.lang.Throwable throwable, java.lang.String message)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetDetailErrCode()java.lang.StringgetErrAbstract()voidsetErrAbstract(java.lang.String errAbstract)-
从类继承的方法 com.alibaba.nacos.api.exception.NacosException
getErrCode, getErrMsg, setCauseThrowable, setErrCode, setErrMsg, toString
-
-
-
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID
serialVersionUID.- 另请参阅:
- 常量字段值
-
detailErrCode
private int detailErrCode
error code for api v2.0.
-
errAbstract
private java.lang.String errAbstract
abstract error description for api v2.0.
-
-