ArgParserException Class Reference


Detailed Description

Exception used by ArgParser. #include <lemon/arg_parser.h>

Inheritance diagram for ArgParserException:

Inheritance graph
[legend]

List of all members.

Public Types

enum  Reason { HELP, UNKNOWN_OPT, INVALID_OPT }

Public Member Functions

 ArgParserException (Reason r) throw ()
 Constructor.
virtual ~ArgParserException () throw ()
 Virtual destructor.
virtual const char * what () const throw ()
 A short description of the exception.
Reason reason () const
 Return the reason for the failure.


Member Enumeration Documentation

enum Reason

Reasons for failure.

Enumerator:
HELP  --help option was given.
UNKNOWN_OPT  Unknown option was given.
INVALID_OPT  Invalid combination of options.


doxygen