Class RestApiException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RestApiException.BadRequest, RestApiException.Conflict, RestApiException.Forbidden, RestApiException.InternalServerError, RestApiException.MethodNotAllowed, RestApiException.NotFound, RestApiException.Unauthorized

public class RestApiException extends RuntimeException
A RuntimeException that represents a http response.
Author:
bjorncs
See Also:
  • Constructor Details

    • RestApiException

      public RestApiException(int statusCode, String errorType, String message)
    • RestApiException

      public RestApiException(HttpResponse response, String message)
    • RestApiException

      public RestApiException(int statusCode, String errorType, String message, Throwable cause)
    • RestApiException

      public RestApiException(HttpResponse response, String message, Throwable cause)
  • Method Details

    • statusCode

      public int statusCode()
    • response

      public HttpResponse response()