LinkageError

  • LinkageError is a subclass of Error and signals that a class has a dependency on another class that has incompatibly changed after compilation.

  • It has several direct subclasses including ClassCircularityError, ClassFormatError, and NoClassDefFoundError, each addressing specific linkage issues.

  • LinkageError also has indirect subclasses like AbstractMethodError and NoSuchMethodError, further detailing the type of incompatibility.

  • It provides constructors to create instances with or without detailed messages and causes.

  • Inherited methods from Throwable and Object offer functionalities like stack trace retrieval, error message handling, and object management.

public class LinkageError extends Error
Known Direct Subclasses
Known Indirect Subclasses

Subclasses of LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.

Public Constructor Summary

LinkageError()
Constructs a LinkageError with no detail message.
LinkageError(String s)
Constructs a LinkageError with the specified detail message.
LinkageError(String s, Throwable cause)
Constructs a LinkageError with the specified detail message and cause.

Inherited Method Summary

Public Constructors

public LinkageError ()

Constructs a LinkageError with no detail message.

public LinkageError (String s)

Constructs a LinkageError with the specified detail message.

Parameters
s the detail message.

public LinkageError (String s, Throwable cause)

Constructs a LinkageError with the specified detail message and cause.

Parameters
s the detail message.
cause the cause, may be null