Class APIException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.apple.itunes.storekit.client.APIException
All Implemented Interfaces:
Serializable

public class APIException extends Exception
Thrown when a non-2xx response is returned when calling the App Store Server API.

If an error code can be parsed from the response, an APIError is included, else only the HTTP status code.

See Also:
  • Constructor Details

    • APIException

      public APIException(int httpStatusCode, Exception cause)
    • APIException

      public APIException(int httpStatusCode)
    • APIException

      public APIException(int httpStatusCode, APIError apiError, String apiErrorMessage)
    • APIException

      public APIException(int httpStatusCode, Long rawApiError, String apiErrorMessage)
  • Method Details

    • getHttpStatusCode

      public int getHttpStatusCode()
    • getApiError

      public APIError getApiError()
    • getRawApiError

      public Long getRawApiError()
    • getApiErrorMessage

      public String getApiErrorMessage()
    • toString

      public String toString()
      Overrides:
      toString in class Throwable