Package java.lang
Class ClassFormatError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.LinkageError
-
- java.lang.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 Summary
Constructors Constructor Description ClassFormatError()Constructs a newClassFormatErrorthat includes the current stack trace.ClassFormatError(String detailMessage)Constructs a newClassFormatErrorwith the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ClassFormatError
public ClassFormatError()
Constructs a newClassFormatErrorthat includes the current stack trace.
-
ClassFormatError
public ClassFormatError(String detailMessage)
Constructs a newClassFormatErrorwith the current stack trace and the specified detail message.- Parameters:
detailMessage- the detail message for this error.
-
-