Top Description Fields Constructors Methods
javassist

public Class CannotCompileException

extends Exception
Class Inheritance
Known Direct Subclasses
javassist.bytecode.DuplicateMemberException, javassist.tools.reflect.CannotReflectException
Imports
javassist.compiler.CompileError

Thrown when bytecode transformation has failed.

Field Summary

Modifier and TypeField and Description
private String
private Throwable
private static final long

Constructor Summary

AccessConstructor and Description
public
CannotCompileException(String
the message.
msg
)

Constructs a CannotCompileException with a message.

public
CannotCompileException(Throwable
the cause.
e
)

Constructs a CannotCompileException with an Exception representing the cause.

public
CannotCompileException(String
the message.
msg
,
Throwable
the cause.
e
)

Constructs a CannotCompileException with a detailed message and an Exception representing the cause.

public
CannotCompileException(NotFoundException e)

Constructs a CannotCompileException with a NotFoundException.

public
CannotCompileException(CompileError e)

Constructs a CannotCompileException with an CompileError.

public
CannotCompileException(ClassNotFoundException e, String name)

Constructs a CannotCompileException with a ClassNotFoundException.

public
CannotCompileException(ClassFormatError e, String name)

Constructs a CannotCompileException with a ClassFormatError.

Method Summary

Modifier and TypeMethod and Description
public synchronized Throwable
getCause()

Overrides java.lang.Throwable.getCause.

Gets the cause of this throwable.

public String
getReason()

Gets a long message if it is available.

public synchronized Throwable
initCause(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
)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this throwable.

Field Detail

messageback to summary
private String message
myCauseback to summary
private Throwable myCause
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

default serialVersionUID

Constructor Detail

CannotCompileExceptionback to summary
public CannotCompileException(String msg)

Constructs a CannotCompileException with a message.

Parameters
msg:String

the message.

CannotCompileExceptionback to summary
public CannotCompileException(Throwable e)

Constructs a CannotCompileException with an Exception representing the cause.

Parameters
e:Throwable

the cause.

CannotCompileExceptionback to summary
public CannotCompileException(String msg, Throwable e)

Constructs a CannotCompileException with a detailed message and an Exception representing the cause.

Parameters
msg:String

the message.

e:Throwable

the cause.

CannotCompileExceptionback to summary
public CannotCompileException(NotFoundException e)

Constructs a CannotCompileException with a NotFoundException.

CannotCompileExceptionback to summary
public CannotCompileException(CompileError e)

Constructs a CannotCompileException with an CompileError.

CannotCompileExceptionback to summary
public CannotCompileException(ClassNotFoundException e, String name)

Constructs a CannotCompileException with a ClassNotFoundException.

CannotCompileExceptionback to summary
public CannotCompileException(ClassFormatError e, String name)

Constructs a CannotCompileException with a ClassFormatError.

Method Detail

getCauseback to summary
public synchronized Throwable getCause()

Overrides java.lang.Throwable.getCause.

Gets the cause of this throwable. It is for JDK 1.3 compatibility.

Returns:Throwable

Doc from java.lang.Throwable.getCause.

the cause of this throwable or null if the cause is nonexistent or unknown.

Annotations
@Override
getReasonback to summary
public String getReason()

Gets a long message if it is available.

initCauseback to summary
public synchronized Throwable initCause(Throwable cause)

Overrides java.lang.Throwable.initCause.

Initializes the cause of this throwable. It is for JDK 1.3 compatibility.

Parameters
cause:Throwable

Doc from java.lang.Throwable.initCause.

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.)

Returns:Throwable

Doc from java.lang.Throwable.initCause.

a reference to this Throwable instance.

Annotations
@Override