Class ShallowAnyErrorHandler

All Implemented Interfaces:
ExtensionPoint, Describable<StatusErrorHandler>, ErrorHandler

public class ShallowAnyErrorHandler extends StatusErrorHandler
Just logs message to the build console and do nothing after it
Since:
1.19.0
Author:
lanwen (Merkushev Kirill)
  • Constructor Details

    • ShallowAnyErrorHandler

      @DataBoundConstructor public ShallowAnyErrorHandler()
  • Method Details

    • handle

      public boolean handle(Exception e, @NonNull Run<?,?> run, @NonNull TaskListener listener)
      Description copied from interface: ErrorHandler
      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 as of its terminating handler