public interface ErrorHandling
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionAdds an error mapper to the instance.Adds an error mapper for the specified content-type to the instance.<T extends Exception>
ErrorHandlingexception(Class<T> exceptionClass, ExceptionHandler<T> handler) Register an exception handler for the given exception type.<T extends Exception>
ExceptionHandler<Exception>Return a registered exception handler given the exception type or null if one is not found.
-
Method Details
-
exception
Register an exception handler for the given exception type. -
error
Adds an error mapper to the instance. Useful for turning error-codes (404, 500) into standardized messages/pages -
error
Adds an error mapper for the specified content-type to the instance. Useful for turning error-codes (404, 500) into standardized messages/pages -
find
Return a registered exception handler given the exception type or null if one is not found.This includes searching the super types of the exception.
-