Package javassist
Class CannotCompileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javassist.CannotCompileException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CannotReflectException,DuplicateMemberException
public class CannotCompileException extends java.lang.ExceptionThrown when bytecode transformation has failed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CannotCompileException(java.lang.ClassFormatError e, java.lang.String name)Constructs a CannotCompileException with a ClassFormatError.CannotCompileException(java.lang.ClassNotFoundException e, java.lang.String name)Constructs a CannotCompileException with aClassNotFoundException.CannotCompileException(java.lang.String msg)Constructs a CannotCompileException with a message.CannotCompileException(java.lang.String msg, java.lang.Throwable e)Constructs a CannotCompileException with a detailed message and anExceptionrepresenting the cause.CannotCompileException(java.lang.Throwable e)Constructs a CannotCompileException with anExceptionrepresenting the cause.CannotCompileException(javassist.compiler.CompileError e)Constructs a CannotCompileException with anCompileError.CannotCompileException(NotFoundException e)Constructs a CannotCompileException with aNotFoundException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ThrowablegetCause()Gets the cause of this throwable.java.lang.StringgetReason()Gets a long message if it is available.java.lang.ThrowableinitCause(java.lang.Throwable cause)Initializes the cause of this throwable.
-
-
-
Constructor Detail
-
CannotCompileException
public CannotCompileException(java.lang.String msg)
Constructs a CannotCompileException with a message.- Parameters:
msg- the message.
-
CannotCompileException
public CannotCompileException(java.lang.Throwable e)
Constructs a CannotCompileException with anExceptionrepresenting the cause.- Parameters:
e- the cause.
-
CannotCompileException
public CannotCompileException(java.lang.String msg, java.lang.Throwable e)Constructs a CannotCompileException with a detailed message and anExceptionrepresenting the cause.- Parameters:
msg- the message.e- the cause.
-
CannotCompileException
public CannotCompileException(NotFoundException e)
Constructs a CannotCompileException with aNotFoundException.
-
CannotCompileException
public CannotCompileException(javassist.compiler.CompileError e)
Constructs a CannotCompileException with anCompileError.
-
CannotCompileException
public CannotCompileException(java.lang.ClassNotFoundException e, java.lang.String name)Constructs a CannotCompileException with aClassNotFoundException.
-
CannotCompileException
public CannotCompileException(java.lang.ClassFormatError e, java.lang.String name)Constructs a CannotCompileException with a ClassFormatError.
-
-
Method Detail
-
getCause
public java.lang.Throwable getCause()
Gets the cause of this throwable. It is for JDK 1.3 compatibility.- Overrides:
getCausein classjava.lang.Throwable
-
initCause
public java.lang.Throwable initCause(java.lang.Throwable cause)
Initializes the cause of this throwable. It is for JDK 1.3 compatibility.- Overrides:
initCausein classjava.lang.Throwable
-
getReason
public java.lang.String getReason()
Gets a long message if it is available.
-
-