Class RestApiResponseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.web.ErrorResponseException
org.springframework.web.server.ResponseStatusException
org.bremersee.exception.RestApiResponseException
All Implemented Interfaces:
Serializable, org.bremersee.exception.RestApiExceptionAware, org.springframework.web.ErrorResponse

public class RestApiResponseException extends org.springframework.web.server.ResponseStatusException implements org.bremersee.exception.RestApiExceptionAware
The rest api response exception.
Author:
Christian Bremer
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.web.ErrorResponse

    org.springframework.web.ErrorResponse.Builder
  • Constructor Summary

    Constructors
    Constructor
    Description
    RestApiResponseException(org.bremersee.exception.model.RestApiException restApiException)
    Instantiates a new rest api response exception.
    RestApiResponseException(org.springframework.http.HttpStatusCode status, org.bremersee.exception.model.RestApiException restApiException)
    Instantiates a new rest api response exception.
  • Method Summary

    Methods inherited from class org.springframework.web.server.ResponseStatusException

    getHeaders, getMessage, getReason, getResponseHeaders, updateAndGetBody

    Methods inherited from class org.springframework.web.ErrorResponseException

    getBody, getDetailMessageArguments, getDetailMessageCode, getStatusCode, setDetail, setInstance, setTitle, setType

    Methods inherited from class org.springframework.core.NestedRuntimeException

    contains, getMostSpecificCause, getRootCause

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.web.ErrorResponse

    getDetailMessageArguments, getTitleMessageCode, getTypeMessageCode

    Methods inherited from interface org.bremersee.exception.RestApiExceptionAware

    getRestApiException
  • Constructor Details

    • RestApiResponseException

      public RestApiResponseException(org.bremersee.exception.model.RestApiException restApiException)
      Instantiates a new rest api response exception.
      Parameters:
      restApiException - the rest api exception
    • RestApiResponseException

      public RestApiResponseException(org.springframework.http.HttpStatusCode status, org.bremersee.exception.model.RestApiException restApiException)
      Instantiates a new rest api response exception.
      Parameters:
      status - the status
      restApiException - the rest api exception