|
|||||||||||
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
java.lang.IllegalArgumentException
org.apache.geronimo.common.InvalidArgumentException
org.apache.geronimo.common.NullArgumentException
Thrown to indicate that a method argument was null
and
should not have been.
Constructor Summary | |
NullArgumentException(String name)
Construct a NullArgumentException . |
|
NullArgumentException(String name,
long index)
Construct a NullArgumentException . |
|
NullArgumentException(String name,
Object index)
Construct a NullArgumentException . |
Method Summary | |
static void |
checkForNull(String name,
Object value)
A simple helper method to check that the given argument value is not null. |
Methods inherited from class org.apache.geronimo.common.InvalidArgumentException |
getIndex, getName, getValue |
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 |
Constructor Detail |
public NullArgumentException(String name)
NullArgumentException
.
name
- Argument name.public NullArgumentException(String name, long index)
NullArgumentException
.
name
- Argument name.index
- Argument index.public NullArgumentException(String name, Object index)
NullArgumentException
.
name
- Argument name.index
- Argument index.Method Detail |
public static void checkForNull(String name, Object value) throws NullArgumentException
null
then a
NullArgumentException
is thrown.
name
- name of the argumentvalue
- the value of the argument
NullArgumentException
- if the argument is null
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |