Package org.bremersee.exception
Interface RestApiExceptionMapper
- All Known Implementing Classes:
RestApiExceptionMapperForWeb
public interface RestApiExceptionMapper
Maps the error response into a
RestApiException
.- Author:
- Christian Bremer
-
Method Summary
-
Method Details
-
build
org.bremersee.exception.model.RestApiException build(Throwable exception, @Nullable String requestPath, @Nullable Object handler) 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
-