Class CombineErrorHandler

    • Method Detail

      • errorHandling

        public static CombineErrorHandler errorHandling()
        Static factory to produce new instance of this handler
        Returns:
        new instance
      • handle

        public boolean handle​(Exception e,
                              @NonNull
                              Run<?,​?> run,
                              @NonNull
                              TaskListener listener)
        Handles exception with help of other handlers. If no one will handle it, it will be thrown to the top level
        Specified by:
        handle in interface ErrorHandler
        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 or rethrows it