FileDocCategorySizeDatePackage
InstantiationException.javaAPI DocJava SE 6 API1228Tue Jun 10 00:25:36 BST 2008java.lang

InstantiationException

public class InstantiationException extends Exception
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
author
unascribed
version
1.19, 11/30/05
see
java.lang.Class#newInstance()
since
JDK1.0

Fields Summary
Constructors Summary
public InstantiationException()
Constructs an {@code InstantiationException} with no detail message.

	super();
    
public InstantiationException(String s)
Constructs an {@code InstantiationException} with the specified detail message.

param
s the detail message.

	super(s);
    
Methods Summary