|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException net.sf.qualitycheck.exception.IllegalNullElementsException
public class IllegalNullElementsException
Thrown to indicate that a method has been passed with an array or a collection which contains a null
element.
Field Summary | |
---|---|
protected static String |
DEFAULT_MESSAGE
Default message to indicate that a given array or Iterable argument must not contain null . |
protected static String |
MESSAGE_WITH_NAME
Message to indicate that the the given array or Iterable argument with name must not contain
null . |
Constructor Summary | |
---|---|
IllegalNullElementsException()
Constructs an IllegalNullArgumentException with the default message
IllegalEmptyArgumentException.DEFAULT_MESSAGE . |
|
IllegalNullElementsException(String argumentName)
Constructs an IllegalNullArgumentException with the message
IllegalEmptyArgumentException.MESSAGE_WITH_NAME including the given name of the argument as string
representation. |
|
IllegalNullElementsException(String argumentName,
Throwable cause)
Constructs a new exception with the message IllegalEmptyArgumentException.MESSAGE_WITH_NAME including the
given name as string representation and cause. |
|
IllegalNullElementsException(Throwable cause)
Constructs a new exception with the default message IllegalEmptyArgumentException.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
Iterable
argument must not contain null
.
protected static final String MESSAGE_WITH_NAME
Iterable
argument with name must not contain
null
.
Constructor Detail |
---|
public IllegalNullElementsException()
IllegalNullArgumentException
with the default message
IllegalEmptyArgumentException.DEFAULT_MESSAGE
.
public IllegalNullElementsException(@Nullable String argumentName)
IllegalNullArgumentException
with the message
IllegalEmptyArgumentException.MESSAGE_WITH_NAME
including the given name of the argument as string
representation.
argumentName
- the name of the passed argumentpublic IllegalNullElementsException(@Nullable String argumentName, @Nullable Throwable cause)
IllegalEmptyArgumentException.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 IllegalNullElementsException(@Nullable Throwable cause)
IllegalEmptyArgumentException.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 |