Module io.helidon.webserver
Package io.helidon.webserver
Interface ErrorHandler<T extends Throwable>
-
- Type Parameters:
T
- Type of handled error.
- 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 ErrorHandler<T extends Throwable>
The routing error handler. Can be mapped to the error cause in theRouting
.- See Also:
Routing.Builder
,Routing.Rules
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(ServerRequest req, ServerResponse res, T ex)
Error handling consumer.
-
-
-
Method Detail
-
accept
void accept(ServerRequest req, ServerResponse res, T ex)
Error handling consumer.- Parameters:
req
- the server requestres
- the server responseex
- the cause of the error
-
-