Class RestApiExceptionMapperForWebFlux

java.lang.Object
org.bremersee.exception.RestApiExceptionMapperForWeb
org.bremersee.exception.RestApiExceptionMapperForWebFlux
All Implemented Interfaces:
org.bremersee.exception.RestApiExceptionMapper

public class RestApiExceptionMapperForWebFlux extends org.bremersee.exception.RestApiExceptionMapperForWeb
The implementation of a rest api exception mapper for spring web flux.
Author:
Christian Bremer
  • Constructor Summary

    Constructors
    Constructor
    Description
    RestApiExceptionMapperForWebFlux(org.bremersee.exception.RestApiExceptionMapperProperties properties, String applicationName)
    Instantiates a new rest api exception mapper.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.http.HttpStatusCode
    detectHttpStatus(Throwable exception, Object handler)
     
    protected String
    getError(Throwable exception, org.springframework.http.HttpStatusCode httpStatusCode)
     

    Methods inherited from class org.bremersee.exception.RestApiExceptionMapperForWeb

    build, findHandlerClass, findHandlerMethod, fromStatus, getApplicationName, getProperties, reconfigureRestApiException, setApplication, setCause, setClassName, setErrorCode, setHandler, setMessage, setPath, setStackTrace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestApiExceptionMapperForWebFlux

      public RestApiExceptionMapperForWebFlux(org.bremersee.exception.RestApiExceptionMapperProperties properties, String applicationName)
      Instantiates a new rest api exception mapper.
      Parameters:
      properties - the properties
      applicationName - the application name
  • Method Details

    • detectHttpStatus

      protected org.springframework.http.HttpStatusCode detectHttpStatus(Throwable exception, Object handler)
      Overrides:
      detectHttpStatus in class org.bremersee.exception.RestApiExceptionMapperForWeb
    • getError

      protected String getError(Throwable exception, org.springframework.http.HttpStatusCode httpStatusCode)
      Overrides:
      getError in class org.bremersee.exception.RestApiExceptionMapperForWeb