Module java.base

Class 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:
  • Constructor Details

    • 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