Class UnrecoverableExceptions

java.lang.Object
io.cucumber.core.exception.UnrecoverableExceptions

public final class UnrecoverableExceptions extends Object
Utility for filtering out unrecoverable exceptions. Cucumber invokes methods that may throw arbitrary exceptions. These can only be caught as Throwable. Some of these such as OutOfMemoryError should never be caught and end in termination of the application.
  • Method Details

    • rethrowIfUnrecoverable

      public static void rethrowIfUnrecoverable(Throwable exception)