Interface ErrorHandler<T extends java.lang.Exception>

  • Type Parameters:
    T - type of exception

    @OpenApiAll
    public interface ErrorHandler<T extends java.lang.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 Detail

      • error

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