Lazy RSS
|
Command line parse error. More...
#include <cli.hpp>
Public Member Functions | |
ParseError () | |
Initializes empty ParseError without error. More... | |
ParseError (int result) | |
Initializes ParseError with result and default error desciption. More... | |
ParseError (int result, const char *desciption) | |
Initializes ParseError with result and desciption. More... | |
virtual const char * | what () const throw () |
Returns reason. More... | |
int | result () const |
Returns return code. More... | |
Command line parse error.
ParseError::ParseError | ( | ) |
Initializes empty ParseError without error.
|
explicit |
Initializes ParseError with result and default error desciption.
Default error description is "Illegal argument"
|
explicit |
Initializes ParseError with result and desciption.
ParseError::result | ( | ) | const |
Returns return code.
0 is passed upon requiring to print help.
|
virtual |
Returns reason.
It is empty string on no-error case.