ClassCircularityError

  • ClassCircularityError is thrown when the Java Virtual Machine detects a circular dependency in the class hierarchy during loading.

  • It is a type of LinkageError, indicating a problem with class relationships.

  • The error can be constructed with or without a detailed message specifying the issue.

  • It inherits methods from Throwable for handling and reporting exceptions, including stack trace information and cause identification.

public class ClassCircularityError extends LinkageError

Thrown when the Java Virtual Machine detects a circularity in the superclass hierarchy of a class being loaded.

Public Constructor Summary

ClassCircularityError()
Constructs a ClassCircularityError with no detail message.
ClassCircularityError(String s)
Constructs a ClassCircularityError with the specified detail message.

Inherited Method Summary

Public Constructors

public ClassCircularityError ()

Constructs a ClassCircularityError with no detail message.

public ClassCircularityError (String s)

Constructs a ClassCircularityError with the specified detail message.

Parameters
s The detail message