Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osid.OsidRuntimeException
org.osid.ConsumerContractException
org.osid.InvalidArgumentException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionConstructs aInvalidArgumentExceptionwith the specified detail message.InvalidArgumentException(String msg, Throwable t) Constructs aInvalidArgumentExceptionwith the specified detail message and cause.Constructs aInvalidArgumentExceptionwith the specified cause and a detail message ofcause.toString()which typically contains the class and detail message ofcause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidArgumentException
-
InvalidArgumentException
-
InvalidArgumentException
Constructs aInvalidArgumentExceptionwith the specified cause and a detail message ofcause.toString()which typically contains the class and detail message ofcause.- Parameters:
t- the cause of the exception
-