APIdia Launch Partner
Top Description Fields Constructors
java.lang

public Class InstantiationError

extends IncompatibleClassChangeError
Class Inheritance

Thrown when an application tries to use the Java new construct to instantiate an abstract class or an interface.

Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed.

Since
1.0

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
InstantiationError()

Constructs an InstantiationError with no detail message.

public
InstantiationError(String
the detail message.
s
)

Constructs an InstantiationError with the specified detail message.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IncompatibleClassChangeError.serialVersionUID.

Annotations
@Serial

Constructor Detail

InstantiationErrorback to summary
public InstantiationError()

Constructs an InstantiationError with no detail message.

InstantiationErrorback to summary
public InstantiationError(String s)

Constructs an InstantiationError with the specified detail message.

Parameters
s:String

the detail message.