Save This Page
Home » openjdk-7 » java » lang » [javadoc | source]
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:
Fields inherited from java.lang.ReflectiveOperationException:
serialVersionUID
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public InstantiationException() 
 public InstantiationException(String s) 
    Constructs an {@code InstantiationException} with the specified detail message.
    Parameters:
    s - the detail message.
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