Class CannotInvokeException

    • Constructor Summary

      Constructors 
      Constructor Description
      CannotInvokeException​(java.lang.ClassNotFoundException e)
      Constructs a CannotInvokeException with an ClassNotFoundException.
      CannotInvokeException​(java.lang.IllegalAccessException e)
      Constructs a CannotInvokeException with an IllegalAccessException.
      CannotInvokeException​(java.lang.reflect.InvocationTargetException e)
      Constructs a CannotInvokeException with an InvocationTargetException.
      CannotInvokeException​(java.lang.String reason)
      Constructs a CannotInvokeException with an error message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Throwable getReason()
      Returns the cause of this exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CannotInvokeException

        public CannotInvokeException​(java.lang.String reason)
        Constructs a CannotInvokeException with an error message.
      • CannotInvokeException

        public CannotInvokeException​(java.lang.reflect.InvocationTargetException e)
        Constructs a CannotInvokeException with an InvocationTargetException.
      • CannotInvokeException

        public CannotInvokeException​(java.lang.IllegalAccessException e)
        Constructs a CannotInvokeException with an IllegalAccessException.
      • CannotInvokeException

        public CannotInvokeException​(java.lang.ClassNotFoundException e)
        Constructs a CannotInvokeException with an ClassNotFoundException.
    • Method Detail

      • getReason

        public java.lang.Throwable getReason()
        Returns the cause of this exception. It may return null.