Interface ErrorHandlerProvider<T extends Throwable>

Type Parameters:
T - type of the exception handled by the handler

@Deprecated public interface ErrorHandlerProvider<T extends Throwable>
Deprecated.
this API is part of incubating features of Helidon. This API may change including backward incompatible changes and full removal. We welcome feedback for incubating features.
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).

To manually register an error handle, please use HttpRouting.Builder.error(Class, io.helidon.webserver.http.ErrorHandler).

  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Create an error handler to handle the exception.
    Deprecated.
    Type of the exception to handle.
  • Method Details

    • errorType

      Class<T> errorType()
      Deprecated.
      Type of the exception to handle.
      Returns:
      class of the exception
    • create

      ErrorHandler<T> create()
      Deprecated.
      Create an error handler to handle the exception.
      Returns:
      a new error handler