Class VectrosApiApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestError, ConflictError, ContentTooLargeError, ForbiddenError, InternalServerError, NotFoundError, NotImplementedError, PaymentRequiredError, TooManyRequestsError, UnauthorizedError

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

    • VectrosApiApiException

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

      public VectrosApiApiException(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