Package com.xinapse.util
Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.xinapse.util.InvalidArgumentException
- All Implemented Interfaces:
Serializable
Signals that an invalid parameter has been passed to a constructor or method, and
that error must be handled by the caller.
This class is used like IllegalArgumentException
, except that this class
is a sub-class of Exception
, rather than RuntimeException
and so must either be caught and handled, or declared in the throws
clause of
a constructor or method.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs anInvalidArgumentException
without a detail message.Constructs anInvalidArgumentException
with the specified detail message.InvalidArgumentException
(String message, Throwable cause) Constructs anInvalidArgumentException
with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidArgumentException
public InvalidArgumentException()Constructs anInvalidArgumentException
without a detail message. -
InvalidArgumentException
Constructs anInvalidArgumentException
with the specified detail message. The error message strings
can later be retrieved by theThrowable.getMessage()
method of classThrowable
.- Parameters:
s
- the detail message.
-
InvalidArgumentException
Constructs anInvalidArgumentException
with the specified cause.- Parameters:
message
- the detail message.cause
- the cause.
-