Class CannotInvokeException

All Implemented Interfaces:
Serializable

public class CannotInvokeException extends RuntimeException
Thrown when method invocation using the reflection API has thrown an exception.
See Also:
  • Constructor Details

    • CannotInvokeException

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

      public CannotInvokeException(InvocationTargetException e)
      Constructs a CannotInvokeException with an InvocationTargetException.
    • CannotInvokeException

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

      public CannotInvokeException(ClassNotFoundException e)
      Constructs a CannotInvokeException with an ClassNotFoundException.
  • Method Details

    • getReason

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