Package io.javalin.http
Interface ExceptionHandler<T extends Exception>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExceptionHandler<T extends Exception>
A handler for use withJavalin.exception(Class, ExceptionHandler). Is triggered when exceptions are thrown by aHandler.- See Also:
Context, Exception mapping in docs
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(T exception, io.javalin.http.Context ctx)
-
-
-
Method Detail
-
handle
void handle(@NotNull T exception, @NotNull io.javalin.http.Context ctx)
-
-