Package java.lang

Class ClassFormatError

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GenericSignatureFormatError, UnsupportedClassVersionError

public class ClassFormatError
extends LinkageError
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.
See Also:
Serialized Form
  • Constructor Details

    • ClassFormatError

      public ClassFormatError()
      Constructs a new ClassFormatError that includes the current stack trace.
    • ClassFormatError

      public ClassFormatError​(String detailMessage)
      Constructs a new ClassFormatError with the current stack trace and the specified detail message.
      Parameters:
      detailMessage - the detail message for this error.