- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.invoke.WrongMethodTypeException
-
- All Implemented Interfaces:
Serializable
public class WrongMethodTypeException extends RuntimeException
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongMethodTypeException()
Construct 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 Detail
-
WrongMethodTypeException
public WrongMethodTypeException()
Construct a WrongMethodTypeException.
-
WrongMethodTypeException
public WrongMethodTypeException(String message)
Construct a WrongMethodTypeException with the supplied message.- Parameters:
message
- The message for the exception
-
-