Class UnrecoverableExceptions

  • @API(status=INTERNAL,
    public final class UnrecoverableExceptions
    extends Object
    Internal utilities for working with unrecoverable exceptions.

    Unrecoverable exceptions are those that should always terminate test plan execution immediately.

    Currently Unrecoverable Exceptions


    These utilities are intended solely for usage within the JUnit framework itself. Any usage by external parties is not supported. Use at your own risk!

    • Method Detail

      • rethrowIfUnrecoverable

        public static void rethrowIfUnrecoverable​(Throwable exception)
        Rethrow the supplied exception if it is unrecoverable.

        If the supplied exception is not unrecoverable, this method does nothing.