Class InstantiationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.mockito.exceptions.base.MockitoException
-
- org.mockito.internal.creation.instance.InstantiationException
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated public class InstantiationException extends MockitoException
Deprecated.since 2.15.4 because this internal class was leaking from the public API. For information why deprecated, seeInstantiatorProvider2
. UseInstantiator
andInstantiationException
types instead.Exception generated when
Instantiator.newInstance(Class)
failed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstantiationException(java.lang.String message, java.lang.Throwable cause)
Deprecated.
-
Method Summary
-
Methods inherited from class org.mockito.exceptions.base.MockitoException
getUnfilteredStackTrace
-
-