public class NullArgumentException extends IllegalArgumentException
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
getArgumentIndex()
Get the argument index.
|
String |
getArgumentName()
Get the argument name that was null.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected final String name
protected final Object index
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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.