Package org.bremersee.exception
Class RestApiExceptionMapperForWebFlux
java.lang.Object
org.bremersee.exception.RestApiExceptionMapperForWeb
org.bremersee.exception.RestApiExceptionMapperForWebFlux
- All Implemented Interfaces:
RestApiExceptionMapper
The implementation of a rest api exception mapper for spring web flux.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorDescriptionRestApiExceptionMapperForWebFlux
(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, reconfigureRestApiException, setApplication, setCause, setClassName, setErrorCode, setHandler, setMessage, setPath, setStackTrace
-
Constructor Details
-
RestApiExceptionMapperForWebFlux
public RestApiExceptionMapperForWebFlux(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) Description copied from class:RestApiExceptionMapperForWeb
Detect http status http status.- Overrides:
detectHttpStatus
in classRestApiExceptionMapperForWeb
- Parameters:
exception
- the exceptionhandler
- the handler- Returns:
- the http status
-
getError
protected String getError(Throwable exception, org.springframework.http.HttpStatusCode httpStatusCode) Description copied from class:RestApiExceptionMapperForWeb
Gets error.- Overrides:
getError
in classRestApiExceptionMapperForWeb
- Parameters:
exception
- the throwablehttpStatusCode
- the http status code- Returns:
- the error
-