java.lang
public class: InstantiationException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.ReflectiveOperationException
java.lang.InstantiationException
All Implemented Interfaces:
Serializable
Thrown when an application tries to create an instance of a class
using the {@code newInstance} method in class
{@code Class}, but the specified class object cannot be
instantiated. The instantiation can fail for a variety of
reasons including but not limited to:
- the class object represents an abstract class, an interface,
an array class, a primitive type, or {@code void}
- the class has no nullary constructor
Also see:
- java.lang.Class#newInstance()
- author:
unascribed
-
- since:
JDK1.0
-
Methods from java.lang.Throwable: |
---|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getStackTraceDepth, getStackTraceElement, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |