|
|||||||||||
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 java.lang.IllegalArgumentException org.jboss.util.NullArgumentException
Thrown to indicate that a method argument was null and should not have been.
Field Summary | |
protected Object |
index
The index of the argument or null if no index. |
protected String |
name
The name of the argument that was null. |
Constructor Summary | |
NullArgumentException()
Construct a NullArgumentException. |
|
NullArgumentException(String name)
Construct a NullArgumentException. |
|
NullArgumentException(String name,
long index)
Construct a NullArgumentException. |
|
NullArgumentException(String name,
Object index)
Construct a NullArgumentException. |
Method Summary | |
Object |
getArgumentIndex()
Get the argument index. |
String |
getArgumentName()
Get the argument name that was null. |
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 final String name
protected final Object index
Constructor Detail |
public NullArgumentException(String name)
name
- Argument name.public NullArgumentException(String name, long index)
name
- Argument name.index
- Argument index.public NullArgumentException(String name, Object index)
name
- Argument name.index
- Argument index.public NullArgumentException()
Method Detail |
public final String getArgumentName()
public final Object getArgumentIndex()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |