Indicates the error during command line parsing process.
List of all members.
Public Types |
enum | { NoPrgName = 0,
MissedArgument = 1
} |
Public Member Functions |
| CliParserException (int code) |
| The constructor with error code specification.
|
| CliParserException (int code, const std::string &arg) |
| The constructor with error code and string argument specification.
|
const std::string & | getArg () const |
| Returns the string argument.
|
int | getCode () const |
| Returns the error code.
|
virtual | ~CliParserException () |
| The destructor.
|
Constructor & Destructor Documentation
CliParserException::CliParserException |
( |
int |
code | ) |
[inline] |
CliParserException::CliParserException |
( |
int |
code, |
|
|
const std::string & |
arg |
|
) |
| [inline] |
- Parameters:
-
| [in | code The error code |
[in] | arg | The string argument |
Member Function Documentation
const std::string& CliParserException::getArg |
( |
| ) |
const [inline] |
Use this method to get string argument of the exception object.
- Returns:
- The string argument
int CliParserException::getCode |
( |
| ) |
const [inline] |
Use this method to get the error code of exception.
- Returns:
- The error code