Package org.bremersee.exception
Interface RestApiExceptionMapper
- All Known Implementing Classes:
RestApiExceptionMapperForWeb,RestApiExceptionMapperForWebFlux
public interface RestApiExceptionMapper
Maps the error response into a
RestApiException.- Author:
- Christian Bremer
-
Method Summary
Modifier and TypeMethodDescriptionBuild the exception model from the exception, the requested path and a handler.
-
Method Details
-
build
Build the exception model from the exception, the requested path and a handler. Typically, the handler is of typeHandlerMethod.- Parameters:
exception- the exception (required)requestPath- the requested path (optional)handler- the handler (optional)- Returns:
- the rest api exception
-