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:
  • Constructor Details

    • 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(javassist.compiler.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 Details

    • getCause

      public Throwable getCause()
      Gets the cause of this throwable. It is for JDK 1.3 compatibility.
      Overrides:
      getCause in class Throwable
    • initCause

      public Throwable initCause(Throwable cause)
      Initializes the cause of this throwable. It is for JDK 1.3 compatibility.
      Overrides:
      initCause in class Throwable
    • getReason

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