APIdia Launch Partner
Top Description Fields Constructors
java.lang.classfile.constantpool

public Class ConstantPoolException

extends IllegalArgumentException
Class Inheritance

Thrown to indicate that requested entry cannot be obtained from the constant pool or the bootstrap method table. This is also thrown when the lazy evaluation of constant pool or bootstrap method table entries encounter format errors.
Since
24

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ConstantPoolException()

Constructs a ConstantPoolException with no detail message.

public
ConstantPoolException(String
the detail message, may be null for no detail message
message
)

Constructs a ConstantPoolException with the specified detail message.

public
ConstantPoolException(Throwable
the cause, may be null for nonexistent or unknown cause
cause
)

Constructs a ConstantPoolException with the specified cause and a detail message of cause == null ?

public
ConstantPoolException(String
the detail message, may be null for no detail message
message
,
Throwable
the cause, may be null for nonexistent or unknown cause
cause
)

Constructs a ConstantPoolException with the specified detail message and cause.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.IllegalArgumentException.serialVersionUID.

Annotations
@Serial

Constructor Detail

ConstantPoolExceptionback to summary
public ConstantPoolException()

Constructs a ConstantPoolException with no detail message.

ConstantPoolExceptionback to summary
public ConstantPoolException(String message)

Constructs a ConstantPoolException with the specified detail message.

Parameters
message:String

the detail message, may be null for no detail message

ConstantPoolExceptionback to summary
public ConstantPoolException(Throwable cause)

Constructs a ConstantPoolException with the specified cause and a detail message of cause == null ? null : cause.toString().

Parameters
cause:Throwable

the cause, may be null for nonexistent or unknown cause

ConstantPoolExceptionback to summary
public ConstantPoolException(String message, Throwable cause)

Constructs a ConstantPoolException with the specified detail message and cause.

Parameters
message:String

the detail message, may be null for no detail message

cause:Throwable

the cause, may be null for nonexistent or unknown cause