模块 java.base
 java.lang

类 ClassFormatError

所有已实现的接口:
Serializable
已知子类:
GenericSignatureFormatError , UnsupportedClassVersionError

public class ClassFormatError extends LinkageError
当 Java 虚拟机尝试读取类文件并确定该文件格式错误或无法解释为类文件时抛出。
自从:
1.0
参见:
  • 构造方法详细信息

    • ClassFormatError

      public ClassFormatError()
      构造一个没有详细信息的ClassFormatError
    • ClassFormatError

      public ClassFormatError(String  s)
      用指定的详细信息构造一个 ClassFormatError
      参数:
      s - 详细消息。