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
A ClassFormatError
is thrown when a Java Virtual Machine
unable to read a class file because the file is corrupted or cannot be
interpreted as a class file.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ClassFormatError
public ClassFormatError()
- Create an error without a message.
ClassFormatError
public ClassFormatError(String s)
- Create an error with a message.
- Parameters:
s
- the message