# Class LinkageError

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.LinkageError

Direct Known Subclasses:
  `IncompatibleClassChangeError`

public class LinkageError extends Error

`LinkageError` is the superclass of all error classes that occur when loading and linking class files.

##### See also

- Error

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `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.

- ## Method Summary

  ### Methods inherited from class Throwable

  `addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### LinkageError

    public LinkageError()
    Constructs a new `LinkageError` that includes the current stack trace.

  - ### LinkageError

    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.