Indicates the error during command line parsing process.
List of all members.
Public Types |
enum | { NoPrgName,
MissedArgument
} |
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
Deepsolver::CliParserException::CliParserException |
( |
int |
code | ) |
[inline] |
Deepsolver::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& Deepsolver::CliParserException::getArg |
( |
| ) |
const [inline] |
Use this method to get string argument of the exception object.
- Returns:
- The string argument
int Deepsolver::CliParserException::getCode |
( |
| ) |
const [inline] |
Use this method to get the error code of exception.
- Returns:
- The error code