Interface ErrorHandler

    • Method Detail

      • handle

        boolean handle​(Exception e,
                       @NonNull
                       Run<?,​?> run,
                       @NonNull
                       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
        Parameters:
        e - exception to handle (log, ignore, process, rethrow)
        run - run object from the step
        listener - listener object from the step
        Returns:
        true if exception handled successfully
        Throws:
        Exception - you can rethrow exception of any type