Class StatusCodeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NotAuthorizedException, NotFoundException

public class StatusCodeException extends ServiceFailureException
The exception that is thrown when the service returns something else than a 200 OK or 201 CREATED status.
See Also:
  • Constructor Details

    • StatusCodeException

      public StatusCodeException(String url, int statusCode, String statusMessage, String returnedContent)
  • Method Details

    • getUrl

      public String getUrl()
      The URL that generated the failure response.
      Returns:
      The URL that generated the failure response.
    • getStatusCode

      public int getStatusCode()
      The status code returned by the server.
      Returns:
      the statusCode
    • getStatusMessage

      public String getStatusMessage()
      The status message returned by the server.
      Returns:
      the statusMessage
    • getReturnedContent

      public String getReturnedContent()
      The content returned by the server.
      Returns:
      the returnedContent
    • toString

      public String toString()
      Overrides:
      toString in class Throwable