public class InvalidArgumentException extends ConsumerContractException
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.Constructor and Description |
---|
InvalidArgumentException(java.lang.String msg)
Constructs a
InvalidArgumentException with the specified
detail message. |
InvalidArgumentException(java.lang.String msg,
java.lang.Throwable t)
Constructs a
InvalidArgumentException with the specified
detail message and cause. |
InvalidArgumentException(java.lang.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 . |
public InvalidArgumentException(java.lang.String msg)
InvalidArgumentException
with the specified
detail message. The error message string msg
can
later be retrieved by the getMessage() method of
Throwable
.msg
- the error messagepublic InvalidArgumentException(java.lang.String msg, java.lang.Throwable t)
InvalidArgumentException
with the specified
detail message and cause. The error message string msg
can
later be retrieved by the getMessage() method of
Throwable
.msg
- the error messaget
- the cause of the exceptionpublic InvalidArgumentException(java.lang.Throwable t)
InvalidArgumentException
with the specified
cause and a detail message of
cause.toString()
which typically contains the class and
detail message of cause
.t
- the cause of the exception