Class TestInstantiationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.junit.platform.commons.JUnitException
org.junit.jupiter.api.extension.TestInstantiationException
All Implemented Interfaces:
java.io.Serializable

@API(status=EXPERIMENTAL,
     since="5.3")
public class TestInstantiationException
extends org.junit.platform.commons.JUnitException
Thrown if an error is encountered during the execution of a TestInstanceFactory.
Since:
5.3
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    TestInstantiationException​(java.lang.String message)  
    TestInstantiationException​(java.lang.String message, java.lang.Throwable cause)  
  • Method Summary

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TestInstantiationException

      public TestInstantiationException​(java.lang.String message)
    • TestInstantiationException

      public TestInstantiationException​(java.lang.String message, java.lang.Throwable cause)