Package org.bremersee.exception
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
ConstructorDescriptionRestApiExceptionMapperForWebFlux
(org.bremersee.exception.RestApiExceptionMapperProperties properties, String applicationName) Instantiates a new rest api exception mapper. -
Method Summary
Methods inherited from class org.bremersee.exception.RestApiExceptionMapperForWeb
build, findHandlerClass, findHandlerMethod, fromStatus, getApplicationName, getProperties, reconfigureRestApiException, setApplication, setCause, setClassName, setErrorCode, setHandler, setMessage, setPath, setStackTrace
-
Constructor Details
-
RestApiExceptionMapperForWebFlux
public RestApiExceptionMapperForWebFlux(org.bremersee.exception.RestApiExceptionMapperProperties properties, String applicationName) Instantiates a new rest api exception mapper.- Parameters:
properties
- the propertiesapplicationName
- the application name
-
-
Method Details
-
detectHttpStatus
protected org.springframework.http.HttpStatusCode detectHttpStatus(Throwable exception, Object handler) - Overrides:
detectHttpStatus
in classorg.bremersee.exception.RestApiExceptionMapperForWeb
-
getError
protected String getError(Throwable exception, org.springframework.http.HttpStatusCode httpStatusCode) - Overrides:
getError
in classorg.bremersee.exception.RestApiExceptionMapperForWeb
-