Top Description Fields Constructors
org.apache.bcel.classfile

public Class ClassFormatException

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.apache.bcel.classfile.InvalidMethodSignatureException

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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ClassFormatException()

Constructs a new instance with null as its detail message.

public
ClassFormatException(final String
the detail message. The detail message is saved for later retrieval by the getMessage() method.
message
)

Constructs a new instance with the specified detail message.

public
ClassFormatException(final String
the detail message (which is saved for later retrieval by the getMessage() method).
message
,
final Throwable
the cause (which is saved for later retrieval by the getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
cause
)

Constructs a new instance with the specified detail message and cause.

public
ClassFormatException(final Throwable
the cause (which is saved for later retrieval by the getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
cause
)

Constructs a new instance with the specified cause and a detail message of (cause==null ?

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

ClassFormatExceptionback to summary
public ClassFormatException()

Constructs a new instance with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

ClassFormatExceptionback to summary
public ClassFormatException(final String message)

Constructs a new instance with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to initCause.

Parameters
message:String

the detail message. The detail message is saved for later retrieval by the getMessage() method.

ClassFormatExceptionback to summary
public ClassFormatException(final String message, final Throwable cause)

Constructs a new instance with the specified detail message and cause.

Parameters
message:String

the detail message (which is saved for later retrieval by the getMessage() method).

cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.

Since
6.0
ClassFormatExceptionback to summary
public ClassFormatException(final Throwable cause)

Constructs a new instance with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.

Parameters
cause:Throwable

the cause (which is saved for later retrieval by the getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.

Since
6.7.0