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
ConstructorsConstructorDescriptionConstructs anInvalidArgumentExceptionwithout a detail message.Constructs anInvalidArgumentExceptionwith the specified detail message.InvalidArgumentException(String message, Throwable cause) Constructs anInvalidArgumentExceptionwith 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 anInvalidArgumentExceptionwithout a detail message. -
InvalidArgumentException
Constructs anInvalidArgumentExceptionwith the specified detail message. The error message stringscan later be retrieved by theThrowable.getMessage()method of classThrowable.- Parameters:
s- the detail message.
-
InvalidArgumentException
Constructs anInvalidArgumentExceptionwith the specified cause.- Parameters:
message- the detail message.cause- the cause.
-