java.lang
Class InstantiationError
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Error
|
+--java.lang.LinkageError
|
+--java.lang.IncompatibleClassChangeError
|
+--java.lang.InstantiationError
An InstantiationError
is thrown when an attempt is made to
create an instance of an abstract class or an interface. Because this
error is usually caught by a compiler, the error only occurs at runtime
when the definition of a class has changed in a way that is incompatible
with the previously compiled application.
Authors:- Brian Jones
- Tom Tromey <tromey@cygnus.com>
InstantiationError
public InstantiationError()
Create an error without a message.
InstantiationError
public InstantiationError(java.lang.String s)
Create an error with a message.
Parameters:
InstantiationError
is thrown when an attempt is made to create an instance of an abstract class or an interface. Because this error is usually caught by a compiler, the error only occurs at runtime when the definition of a class has changed in a way that is incompatible with the previously compiled application.