open class ClassFormatError : LinkageError
kotlin.Any
   ↳ kotlin.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

Constructs a ClassFormatError with no detail message.

Constructs a ClassFormatError with the specified detail message.

Public constructors

ClassFormatError

ClassFormatError()

Constructs a ClassFormatError with no detail message.

ClassFormatError

ClassFormatError(s: String!)

Constructs a ClassFormatError with the specified detail message.

Parameters
s String!: the detail message.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.