Class 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 Detail

      • rethrowIfUnrecoverable

        public static void rethrowIfUnrecoverable​(Throwable exception)