javassist
Class CannotCompileException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavassist.CannotCompileException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CannotReflectException

public class CannotCompileException
extends java.lang.Exception

Thrown when bytecode transformation has failed.

See Also:
Serialized Form

Constructor Summary
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 a ClassNotFoundException.
CannotCompileException(javassist.compiler.CompileError e)
          Constructs a CannotCompileException with an CompileError.
CannotCompileException(NotFoundException e)
          Constructs a CannotCompileException with a NotFoundException.
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 an Exception representing the cause.
CannotCompileException(java.lang.Throwable e)
          Constructs a CannotCompileException with an Exception representing the cause.
 
Method Summary
 java.lang.String getReason()
           
 void printStackTrace(java.io.PrintWriter w)
          Prints this exception and its backtrace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 an Exception representing 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 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(javassist.compiler.CompileError e)
Constructs a CannotCompileException with an CompileError.


CannotCompileException

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


CannotCompileException

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

Method Detail

getReason

public java.lang.String getReason()

printStackTrace

public void printStackTrace(java.io.PrintWriter w)
Prints this exception and its backtrace.



Javassist, a Java-bytecode translator toolkit. Copyright (C) 1999-2005 Shigeru Chiba. All Rights Reserved.