Interface ErrorHandler<T extends Exception>

Type Parameters:
T - type of exception

@OpenApiAll public interface ErrorHandler<T extends Exception>
General purpose exception handler. Handler is used in components which has no ability to decide how to handle errors. Handler may ignore, log exception or re throw it or do anything else.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    error(T e)
    Handles exception.
  • Method Details

    • error

      void error(T e) throws T
      Handles exception.
      Parameters:
      e - occurred exception.
      Throws:
      T - in case this handler does not handles error.