Package javassist

Class CannotCompileException

    • 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.
        Overrides:
        getCause in class Throwable
      • getReason

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