类 BiddingApiException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.infilake.openapi.bidding.exception.BiddingApiException
所有已实现的接口:
Serializable
直接已知子类:
DataConflictException, DataNotFoundException, InternalErrorException, ParamErrorException, UnauthorizedException

public class BiddingApiException extends Exception
Base checked exception for Bidding API errors

All API errors are represented as checked exceptions following the error codes defined in the API documentation. This forces clients to handle errors explicitly.

另请参阅:
  • 构造器详细资料

    • BiddingApiException

      public BiddingApiException(int code, String errorName, String message)
      Constructs a new BiddingApiException
      参数:
      code - 错误码
      errorName - 错误名称
      message - 错误信息
    • BiddingApiException

      public BiddingApiException(int code, String errorName, String message, Throwable cause)
      Constructs a new BiddingApiException with a cause
      参数:
      code - 错误码
      errorName - 错误名称
      message - 错误信息
      cause - 原始异常
  • 方法详细资料

    • getCode

      public int getCode()
      Get the error code
      返回:
      错误码
    • getErrorName

      public String getErrorName()
      Get the error name
      返回:
      错误名称
    • toString

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