Class InstantiationException

All Implemented Interfaces:
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, see InstantiatorProvider2. Use Instantiator and InstantiationException types instead.

Exception generated when Instantiator.newInstance(Class) failed.

See Also:
  • Constructor Details

    • InstantiationException

      public InstantiationException(String message, Throwable cause)
      Deprecated.