Uses of Interface
io.avaje.jex.ErrorHandling
| Package | Description |
|---|---|
| io.avaje.jex |
-
Uses of ErrorHandling in io.avaje.jex
Methods in io.avaje.jex that return ErrorHandling Modifier and Type Method Description ErrorHandlingErrorHandling. error(int statusCode, Handler handler)Adds an error mapper to the instance.ErrorHandlingErrorHandling. error(int statusCode, String contentType, Handler handler)Adds an error mapper for the specified content-type to the instance.ErrorHandlingJex. errorHandling()Return the Error handler to add error handlers.<T extends Exception>
ErrorHandlingErrorHandling. exception(Class<T> exceptionClass, ExceptionHandler<T> handler)Register an exception handler for the given exception type.Methods in io.avaje.jex with parameters of type ErrorHandling Modifier and Type Method Description voidErrorHandling.Service. add(ErrorHandling errorHandling)Add to the error handling.