Ditto  5.1.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
CLI::ArgumentMismatch Class Reference

Thrown when the wrong number of arguments has been received. More...

Inheritance diagram for CLI::ArgumentMismatch:
Inheritance graph
[legend]
Collaboration diagram for CLI::ArgumentMismatch:
Collaboration graph
[legend]

Public Member Functions

 ArgumentMismatch (std::string msg, ExitCodes exit_code)
 
 ArgumentMismatch (std::string msg, int exit_code)
 
 ArgumentMismatch (std::string msg)
 
 ArgumentMismatch (std::string name, int expected, std::size_t received)
 
- Public Member Functions inherited from CLI::ParseError
 ParseError (std::string msg, ExitCodes exit_code)
 
 ParseError (std::string msg, int exit_code)
 
- Public Member Functions inherited from CLI::Error
int get_exit_code () const
 
std::string get_name () const
 
 Error (std::string name, std::string msg, int exit_code=static_cast< int >(ExitCodes::BaseClass))
 
 Error (std::string name, std::string msg, ExitCodes exit_code)
 

Static Public Member Functions

static ArgumentMismatch AtLeast (std::string name, int num, std::size_t received)
 
static ArgumentMismatch AtMost (std::string name, int num, std::size_t received)
 
static ArgumentMismatch TypedAtLeast (std::string name, int num, std::string type)
 
static ArgumentMismatch FlagOverride (std::string name)
 
static ArgumentMismatch PartialType (std::string name, int num, std::string type)
 

Protected Member Functions

 ArgumentMismatch (std::string ename, std::string msg, int exit_code)
 
 ArgumentMismatch (std::string ename, std::string msg, ExitCodes exit_code)
 
- Protected Member Functions inherited from CLI::ParseError
 ParseError (std::string ename, std::string msg, int exit_code)
 
 ParseError (std::string ename, std::string msg, ExitCodes exit_code)
 

Detailed Description

Thrown when the wrong number of arguments has been received.