Package javassist
Class CannotCompileException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javassist.CannotCompileException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CannotReflectException
,DuplicateMemberException
public class CannotCompileException extends Exception
Thrown when bytecode transformation has failed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CannotCompileException(ClassFormatError e, String name)
Constructs a CannotCompileException with a ClassFormatError.CannotCompileException(ClassNotFoundException e, String name)
Constructs a CannotCompileException with aClassNotFoundException
.CannotCompileException(String msg)
Constructs a CannotCompileException with a message.CannotCompileException(String msg, Throwable e)
Constructs a CannotCompileException with a detailed message and anException
representing the cause.CannotCompileException(Throwable e)
Constructs a CannotCompileException with anException
representing the cause.CannotCompileException(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 Throwable
getCause()
Gets the cause of this throwable.String
getReason()
Gets a long message if it is available.Throwable
initCause(Throwable cause)
Initializes the cause of this throwable.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 anException
representing the cause.- Parameters:
e
- the cause.
-
CannotCompileException
public CannotCompileException(String msg, Throwable e)
Constructs a CannotCompileException with a detailed message and anException
representing the cause.- Parameters:
msg
- the message.e
- the cause.
-
CannotCompileException
public CannotCompileException(NotFoundException e)
Constructs a CannotCompileException with aNotFoundException
.
-
CannotCompileException
public CannotCompileException(CompileError e)
Constructs a CannotCompileException with anCompileError
.
-
CannotCompileException
public CannotCompileException(ClassNotFoundException e, String name)
Constructs a CannotCompileException with aClassNotFoundException
.
-
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.
-
initCause
public Throwable initCause(Throwable cause)
Initializes the cause of this throwable. It is for JDK 1.3 compatibility.
-
getReason
public String getReason()
Gets a long message if it is available.
-
-