abLEMON 1.9.0-101-gccb8629
A maintained fork of LEMON
Loading...
Searching...
No Matches
ArgParserException Class Reference

Exception used by ArgParser. More...

#include <lemon/arg_parser.h>

Inheritance diagram for ArgParserException:

Public Types

enum  Reason { HELP , UNKNOWN_OPT , INVALID_OPT }
 Reasons for failure. More...

Public Member Functions

 ArgParserException (Reason r) noexcept
 Constructor.
virtual const char * what () const noexcept
 A short description of the exception.
Reason reason () const
 Return the reason for the failure.
Public Member Functions inherited from Exception
 Exception () noexcept
 Constructor.
virtual ~Exception ()=default
 Virtual destructor.
 Exception (const Exception &)=default
 Copy constructor.
Exception & operator= (const Exception &)=default
 Copy assignment.

Detailed Description

Member Enumeration Documentation

◆ Reason

enum Reason

Reasons for failure.

Enumerator
HELP 

–help option was given.

UNKNOWN_OPT 

Unknown option was given.

INVALID_OPT 

Invalid combination of options.