Added in API level 1

ClassFormatError

public class ClassFormatError
extends LinkageError

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Error
       ↳ java.lang.LinkageError
         ↳ java.lang.ClassFormatError


Thrown when the Java Virtual Machine attempts to read a class file and determines that the file is malformed or otherwise cannot be interpreted as a class file.

Summary

Public constructors

ClassFormatError()

Constructs a ClassFormatError with no detail message.

ClassFormatError(String s)

Constructs a ClassFormatError with the specified detail message.

Inherited methods

Public constructors

ClassFormatError

Added in API level 1
public ClassFormatError ()

Constructs a ClassFormatError with no detail message.

ClassFormatError

Added in API level 1
public ClassFormatError (String s)

Constructs a ClassFormatError with the specified detail message.

Parameters
s String: the detail message.