Class InvalidArgumentException

All Implemented Interfaces:
Serializable

public class InvalidArgumentException extends ConsumerContractException
A supplied argument is invalid. This may be due to a data violation that should be checked against the appropriate Metadata object or specification for validity before use. These errors may also be returned where not specified in cases where an OSID parameter is specified to have a restricted set of values not enforced by the language environment, such supplying a negative number for a cardinal parameter.
See Also:
  • Constructor Details

    • InvalidArgumentException

      public InvalidArgumentException(String msg)
      Constructs a InvalidArgumentException 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
    • InvalidArgumentException

      public InvalidArgumentException(String msg, Throwable t)
      Constructs a InvalidArgumentException 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
    • InvalidArgumentException

      public InvalidArgumentException(Throwable t)
      Constructs a InvalidArgumentException 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