类 NacosException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.alibaba.nacos.api.exception.NacosException
所有已实现的接口:
Serializable

public class NacosException extends Exception
Nacos Exception.
作者:
Nacos
另请参阅:
序列化表格
  • 字段详细资料

    • CLIENT_INVALID_PARAM

      public static final int CLIENT_INVALID_PARAM
      invalid param(参数错误).
      另请参阅:
      常量字段值
    • CLIENT_DISCONNECT

      public static final int CLIENT_DISCONNECT
      client disconnect.
      另请参阅:
      常量字段值
    • CLIENT_OVER_THRESHOLD

      public static final int CLIENT_OVER_THRESHOLD
      over client threshold(超过client端的限流阈值).
      另请参阅:
      常量字段值
    • INVALID_PARAM

      public static final int INVALID_PARAM
      invalid param(参数错误).
      另请参阅:
      常量字段值
    • NO_RIGHT

      public static final int NO_RIGHT
      no right(鉴权失败).
      另请参阅:
      常量字段值
    • NOT_FOUND

      public static final int NOT_FOUND
      not found.
      另请参阅:
      常量字段值
    • CONFLICT

      public static final int CONFLICT
      conflict(写并发冲突).
      另请参阅:
      常量字段值
    • SERVER_ERROR

      public static final int SERVER_ERROR
      server error(server异常,如超时).
      另请参阅:
      常量字段值
    • BAD_GATEWAY

      public static final int BAD_GATEWAY
      bad gateway(路由异常,如nginx后面的Server挂掉).
      另请参阅:
      常量字段值
    • OVER_THRESHOLD

      public static final int OVER_THRESHOLD
      over threshold(超过server端的限流阈值).
      另请参阅:
      常量字段值
    • INVALID_SERVER_STATUS

      public static final int INVALID_SERVER_STATUS
      Server is not started.
      另请参阅:
      常量字段值
    • UN_REGISTER

      public static final int UN_REGISTER
      Connection is not registered.
      另请参阅:
      常量字段值
    • NO_HANDLER

      public static final int NO_HANDLER
      No Handler Found.
      另请参阅:
      常量字段值
    • RESOURCE_NOT_FOUND

      public static final int RESOURCE_NOT_FOUND
      另请参阅:
      常量字段值
    • HTTP_CLIENT_ERROR_CODE

      public static final int HTTP_CLIENT_ERROR_CODE
      http client error code, ome exceptions that occurred when the use the Nacos RestTemplate and Nacos AsyncRestTemplate.
      另请参阅:
      常量字段值
  • 构造器详细资料

    • NacosException

      public NacosException()
    • NacosException

      public NacosException(int errCode, String errMsg)
    • NacosException

      public NacosException(int errCode, Throwable throwable)
    • NacosException

      public NacosException(int errCode, String errMsg, Throwable throwable)
  • 方法详细资料

    • getErrCode

      public int getErrCode()
    • getErrMsg

      public String getErrMsg()
    • setErrCode

      public void setErrCode(int errCode)
    • setErrMsg

      public void setErrMsg(String errMsg)
    • setCauseThrowable

      public void setCauseThrowable(Throwable throwable)
    • toString

      public String toString()
      覆盖:
      toString 在类中 Throwable