Interface ErrorHandlerProvider<T extends Throwable>
- Type Parameters:
T- type of the exception handled by the handler
public interface ErrorHandlerProvider<T extends Throwable>
Error handler provider to create a service using
ServiceRegistry,
that provides an error handler.
Instances of this service discovered by service registry are only used when the whole server is started using it (i.e. Helidon Declarative approach).
This API is part of Helidon Declarative preview. It is intended for supported external use and will remain backward compatible within a major version. It may change without deprecation in a new major version.
To manually register an error handler, please use
HttpRouting.Builder.error(Class, io.helidon.webserver.http.ErrorHandler).
-
Method Summary
-
Method Details
-
errorType
-
create
ErrorHandler<T> create()Create an error handler to handle the exception.- Returns:
- a new error handler
-