Package com.chargebee

Class APIException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BatchAPIException, InvalidRequestException, OperationFailedException, PaymentException, UbbBatchIngestionInvalidRequestException

public class APIException extends RuntimeException
See Also:
  • Field Details

    • jsonObj

      public final org.json.JSONObject jsonObj
    • httpStatusCode

      public final int httpStatusCode
    • type

      public final String type
    • param

      public final String param
    • apiErrorCode

      public final String apiErrorCode
    • errorCauseId

      public final String errorCauseId
    • headers

      public final Map<String,List<String>> headers
    • httpCode

      @Deprecated public final int httpCode
      Deprecated.
      Use httpStatusCode instead.
    • code

      @Deprecated public final String code
      Deprecated.
      Use apiErrorCode instead.
  • Constructor Details

    • APIException

      public APIException(int httpStatusCode, String message, org.json.JSONObject jsonObj)
    • APIException

      public APIException(int httpStatusCode, String message, org.json.JSONObject jsonObj, Map<String,List<String>> headers)
  • Method Details

    • isParamErr

      public boolean isParamErr()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable