public class ArgumentException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MISSING_ARGUMENT
Constant for error message A required argument is missing
|
static java.lang.String |
NOT_RECOGNIZED
Constant for error message Not recognized as an argument
|
| Constructor and Description |
|---|
ArgumentException(java.lang.String message)
Constructor for ArgumentException.
|
ArgumentException(java.lang.String arg,
java.lang.String message)
Constructor for ArgumentException.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArgument()
Gets the Argument for which the Exception was thrown
|
public static final java.lang.String NOT_RECOGNIZED
public static final java.lang.String MISSING_ARGUMENT
public ArgumentException(java.lang.String message)
message - String, the message for this Exceptionpublic ArgumentException(java.lang.String arg,
java.lang.String message)
arg - String, the argument for which the Exception was thrownmessage - String, The exception message