Class InvalidMethodException

All Implemented Interfaces:
Serializable

public class InvalidMethodException extends ConsumerContractException
A method not defined in the interface was invoked. This error is not used in the method specification but may occur any time an undefined method is invoked, as permissible by the language environment.
See Also:
  • Constructor Details

    • InvalidMethodException

      public InvalidMethodException(String msg)
      Constructs a InvalidMethodException with the specified detail message. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
    • InvalidMethodException

      public InvalidMethodException(String msg, Throwable t)
      Constructs a InvalidMethodException with the specified detail message and cause. The error message string msg can later be retrieved by the getMessage() method of Throwable.
      Parameters:
      msg - the error message
      t - the cause of the exception
    • InvalidMethodException

      public InvalidMethodException(Throwable t)
      Constructs a InvalidMethodException with the specified cause and a detail message of cause.toString() which typically contains the class and detail message of cause.
      Parameters:
      t - the cause of the exception