java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.invoke.WrongMethodTypeException
- All Implemented Interfaces:
Serializable
WrongMethodTypeException is thrown to indicate an attempt to invoke a MethodHandle with the wrong MethodType.
This exception can also be thrown when adapting a MethodHandle in a way that is incompatible with its MethodType.
- Since:
- 1.7
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a WrongMethodTypeException.WrongMethodTypeException
(String message) Construct a WrongMethodTypeException with the supplied message. -
Method Summary
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WrongMethodTypeException
public WrongMethodTypeException()Construct a WrongMethodTypeException. -
WrongMethodTypeException
Construct a WrongMethodTypeException with the supplied message.- Parameters:
message
- The message for the exception
-