Class IntercomApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestError, ForbiddenError, NotFoundError, UnauthorizedError, UnprocessableEntityError

public class IntercomApiException extends IntercomException
This exception type will be thrown for any non-2XX API responses.
See Also:
  • Constructor Details

    • IntercomApiException

      public IntercomApiException(String message, int statusCode, Object body)
    • IntercomApiException

      public IntercomApiException(String message, int statusCode, Object body, okhttp3.Response rawResponse)
  • Method Details

    • statusCode

      public int statusCode()
      Returns:
      the statusCode
    • body

      public Object body()
      Returns:
      the body
    • headers

      public Map<String,List<String>> headers()
      Returns:
      the headers
    • toString

      public String toString()
      Overrides:
      toString in class Throwable