Top Description Fields Constructors
java.lang

public Class InstantiationException

extends ReflectiveOperationException
Class Inheritance

Thrown when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated. The instantiation can fail for a variety of reasons including but not limited to:
Since
1.0
See Also
java.lang.Class#newInstance()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
InstantiationException()

Constructs an InstantiationException with no detail message.

public
InstantiationException(String
the detail message.
s
)

Constructs an InstantiationException with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.ReflectiveOperationException.serialVersionUID.

Annotations
@Serial

Constructor Detail

InstantiationExceptionback to summary
public InstantiationException()

Constructs an InstantiationException with no detail message.

InstantiationExceptionback to summary
public InstantiationException(String s)

Constructs an InstantiationException with the specified detail message.

Parameters
s:String

the detail message.