Known Direct Subclasses
ClassCircularityError |
Thrown when the virtual machine notices that an attempt is made to load a
class which would directly or indirectly inherit from one of its subclasses. |
ClassFormatError |
Thrown by a class loader when a class file has an illegal format or if the
data that it contains can not be interpreted as a class. |
ExceptionInInitializerError |
Thrown when an exception occurs during class initialization. |
IncompatibleClassChangeError |
IncompatibleClassChangeError is the superclass of all classes which
represent errors that occur when inconsistent class files are loaded into
the same running image. |
NoClassDefFoundError |
Thrown when the virtual machine is unable to locate a class which it has been
asked to load. |
UnsatisfiedLinkError |
Thrown when an attempt is made to invoke a native for which an implementation
could not be found. |
VerifyError |
Thrown when the virtual machine notices that an attempt is made to load a
class which does not pass the class verification phase. |
|
Known Indirect Subclasses
AbstractMethodError |
Thrown by the virtual machine when an abstract method is called. |
GenericSignatureFormatError |
Indicates that a malformed signature has been encountered via a reflective
method. |
IllegalAccessError |
Thrown when the virtual machine notices that a program tries access a field
which is not accessible from where it is referenced. |
InstantiationError |
Thrown when the virtual machine notices that a program tries to create a new
instance of a class which has no visible constructors from the location where
new is invoked. |
NoSuchFieldError |
Thrown when the virtual machine notices that a program tries to reference,
on a class or object, a field that does not exist. |
NoSuchMethodError |
Thrown when the virtual machine notices that a program tries to reference,
on a class or object, a method that does not exist. |
UnsupportedClassVersionError |
Thrown when an attempt is made to load a class with a format version that is
not supported by the virtual machine. |
|
Class Overview
LinkageError
is the superclass of all error classes that occur when
loading and linking class files.
Summary
Public Constructors |
|
LinkageError()
Constructs a new LinkageError that includes the current stack
trace.
|
|
LinkageError(String detailMessage)
Constructs a new LinkageError with the current stack trace and
the specified detail message.
|
[Expand]
Inherited Methods |
From class java.lang.Throwable
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
Public Constructors
public
LinkageError
()
Constructs a new LinkageError
that includes the current stack
trace.
public
LinkageError
(String detailMessage)
Constructs a new LinkageError
with the current stack trace and
the specified detail message.
Parameters
detailMessage
| the detail message for this error. |