|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.qualitycheck.exception.IllegalNumericArgumentException
public class IllegalNumericArgumentException
Thrown to indicate that a method has been passed with an argument that was not numeric. Numeric arguments consist only of the characters 0-9 and may start with 0 (compared to number arguments, which must be valid numbers).
IllegalNumberArgumentException,
Serialized Form| Field Summary | |
|---|---|
protected static String |
DEFAULT_MESSAGE
Default message to indicate that the a given argument must be numeric. |
protected static String |
MESSAGE_WITH_NAME
Message to indicate that the the given argument with name must be numeric. |
| Constructor Summary | |
|---|---|
IllegalNumericArgumentException()
Constructs an IllegalNullArgumentException with the default message
DEFAULT_MESSAGE. |
|
IllegalNumericArgumentException(String argumentName)
Constructs an IllegalNullArgumentException with the message
MESSAGE_WITH_NAME including the given name of the argument as string
representation. |
|
IllegalNumericArgumentException(String argumentName,
Throwable cause)
Constructs a new exception with the message MESSAGE_WITH_NAME including
the given name as string representation and cause. |
|
IllegalNumericArgumentException(Throwable cause)
Constructs a new exception with the default message DEFAULT_MESSAGE. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String DEFAULT_MESSAGE
protected static final String MESSAGE_WITH_NAME
| Constructor Detail |
|---|
public IllegalNumericArgumentException()
IllegalNullArgumentException with the default message
DEFAULT_MESSAGE.
public IllegalNumericArgumentException(@Nullable
String argumentName)
IllegalNullArgumentException with the message
MESSAGE_WITH_NAME including the given name of the argument as string
representation.
argumentName - the name of the passed argument
public IllegalNumericArgumentException(@Nullable
String argumentName,
@Nullable
Throwable cause)
MESSAGE_WITH_NAME including
the given name as string representation and cause.
argumentName - the name of the passed argumentcause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
public IllegalNumericArgumentException(@Nullable
Throwable cause)
DEFAULT_MESSAGE.
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A
null value is permitted, and indicates that the cause is nonexistent or unknown.)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||