Class ApiException

  • All Implemented Interfaces:
    Serializable

    public class ApiException
    extends Exception
    API Exception thrown when there is an API error

    Check ApiError object to obtain the information about the error

    See Also:
    Serialized Form
    • Constructor Detail

      • ApiException

        public ApiException​(String message,
                            int statusCode)
    • Method Detail

      • setError

        public void setError​(ApiError error)
      • getStatusCode

        public int getStatusCode()
      • setStatusCode

        public void setStatusCode​(int statusCode)
      • getResponseBody

        public String getResponseBody()
      • setResponseBody

        public void setResponseBody​(String responseBody)