Class AntsPlatformClientApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AccessDeniedError, Error, MethodNotAllowedError, NotFoundError, ServiceUnavailableError, UnauthorizedError

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

    • AntsPlatformClientApiException

      public AntsPlatformClientApiException(String message, int statusCode, Object body)
  • Method Details

    • statusCode

      public int statusCode()
      Returns:
      the statusCode
    • body

      public Object body()
      Returns:
      the body
    • toString

      public String toString()
      Overrides:
      toString in class Throwable