javassist

Class CannotCompileException

public class CannotCompileException extends Exception

Thrown when bytecode transformation has failed.
Constructor Summary
CannotCompileException(String msg)
Constructs a CannotCompileException with a message.
CannotCompileException(Throwable e)
Constructs a CannotCompileException with an Exception representing the cause.
CannotCompileException(String msg, Throwable e)
Constructs a CannotCompileException with a detailed message and an Exception representing the cause.
CannotCompileException(NotFoundException e)
Constructs a CannotCompileException with a NotFoundException.
CannotCompileException(CompileError e)
Constructs a CannotCompileException with an CompileError.
CannotCompileException(ClassNotFoundException e, String name)
Constructs a CannotCompileException with a ClassNotFoundException.
CannotCompileException(ClassFormatError e, String name)
Constructs a CannotCompileException with a ClassFormatError.
Method Summary
ThrowablegetCause()
Gets the cause of this throwable.
StringgetReason()
Gets a long message if it is available.
ThrowableinitCause(Throwable cause)
Initializes the cause of this throwable.

Constructor Detail

CannotCompileException

public CannotCompileException(String msg)
Constructs a CannotCompileException with a message.

Parameters: msg the message.

CannotCompileException

public CannotCompileException(Throwable e)
Constructs a CannotCompileException with an Exception representing the cause.

Parameters: e the cause.

CannotCompileException

public CannotCompileException(String msg, Throwable e)
Constructs a CannotCompileException with a detailed message and an Exception representing the cause.

Parameters: msg the message. e the cause.

CannotCompileException

public CannotCompileException(NotFoundException e)
Constructs a CannotCompileException with a NotFoundException.

CannotCompileException

public CannotCompileException(CompileError e)
Constructs a CannotCompileException with an CompileError.

CannotCompileException

public CannotCompileException(ClassNotFoundException e, String name)
Constructs a CannotCompileException with a ClassNotFoundException.

CannotCompileException

public CannotCompileException(ClassFormatError e, String name)
Constructs a CannotCompileException with a ClassFormatError.

Method Detail

getCause

public Throwable getCause()
Gets the cause of this throwable. It is for JDK 1.3 compatibility.

getReason

public String getReason()
Gets a long message if it is available.

initCause

public Throwable initCause(Throwable cause)
Initializes the cause of this throwable. It is for JDK 1.3 compatibility.
Javassist, a Java-bytecode translator toolkit.
Copyright (C) 1999-2006 Shigeru Chiba. All Rights Reserved.