Interface ErrorHandler

    • Method Detail

      • handle

        boolean handle​(Exception e,
                       Run<?,​?> run,
                       TaskListener listener)
                throws Exception
        Normally should return true if exception is handled and no other handler should do anything. If you will return false, the next error handler should try to handle this exception
        e - exception to handle (log, ignore, process, rethrow)
        run - run object from the step
        listener - listener object from the step
        true if exception handled successfully
        Exception - you can rethrow exception of any type