public class CmdLineActionException
extends java.lang.RuntimeException
CmdLineAction.
This exception can be thrown by the command line action's consumer expressions to indicate a problem during command line evaluation. The command line evaluation is stopped as soon as this exception is encountered.
| Constructor and Description |
|---|
CmdLineActionException(java.lang.String arg)
Construct
CmdLineActionException. |
CmdLineActionException(java.lang.String arg,
java.lang.String option)
Construct
CmdLineActionException. |
CmdLineActionException(java.lang.String arg,
java.lang.String option,
java.lang.Throwable cause)
Construct
CmdLineActionException. |
CmdLineActionException(java.lang.String arg,
java.lang.Throwable cause)
Construct
CmdLineActionException. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArg()
Get the causing argument.
|
java.lang.String |
getOption()
Get the argument option (if existent).
|
public CmdLineActionException(java.lang.String arg)
CmdLineActionException.arg - The causing argument.public CmdLineActionException(java.lang.String arg,
java.lang.Throwable cause)
CmdLineActionException.arg - The causing argument.cause - The causing exception.public CmdLineActionException(java.lang.String arg,
java.lang.String option)
CmdLineActionException.arg - The causing argument.option - The option argument option.public java.lang.String getArg()
@Nullable public java.lang.String getOption()
null).