Class ThrowableCollector

java.lang.Object
io.cucumber.core.runner.ThrowableCollector

final class ThrowableCollector extends Object
Collects thrown exceptions.

When multiple exceptions are thrown, the worst exception is shown first. Other exceptions are suppressed.

  • Field Details

  • Constructor Details

    • ThrowableCollector

      ThrowableCollector()
  • Method Details

    • execute

      void execute(Runnable runnable)
    • add

      void add(Throwable throwable)
    • isTestAbortedException

      private boolean isTestAbortedException(Throwable throwable)
    • getThrowable

      @Nullable Throwable getThrowable()