Class UnrecoverableExceptions

java.lang.Object
org.junit.platform.commons.util.UnrecoverableExceptions

@API(status=INTERNAL,
     since="1.7")
public final class UnrecoverableExceptions
extends java.lang.Object
Internal utilities for working with unrecoverable exceptions.

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

Currently Unrecoverable Exceptions

  • OutOfMemoryError

DISCLAIMER

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!

Since:
1.7
  • Method Summary

    Modifier and Type Method Description
    static void rethrowIfUnrecoverable​(java.lang.Throwable exception)
    Rethrow the supplied exception if it is unrecoverable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • rethrowIfUnrecoverable

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

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