Scarab  v3.9.2
Project 8 C++ Utility Library
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
ArgumentMismatch Class Reference

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

#include <CLI11.hpp>

Inheritance diagram for ArgumentMismatch:
Inheritance graph

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, size_t recieved)
 
- Public Member Functions inherited from ParseError
 ParseError (std::string msg, ExitCodes exit_code)
 
 ParseError (std::string msg, int exit_code)
 
- Public Member Functions inherited from 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)
 
static ArgumentMismatch TypedAtLeast (std::string name, int num, std::string type)
 
static ArgumentMismatch FlagOverride (std::string name)
 

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 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.

Definition at line 812 of file CLI11.hpp.

Constructor & Destructor Documentation

◆ ArgumentMismatch() [1/6]

ArgumentMismatch ( std::string  ename,
std::string  msg,
int  exit_code 
)
inlineprotected

Definition at line 813 of file CLI11.hpp.

◆ ArgumentMismatch() [2/6]

ArgumentMismatch ( std::string  ename,
std::string  msg,
ExitCodes  exit_code 
)
inlineprotected

Definition at line 813 of file CLI11.hpp.

◆ ArgumentMismatch() [3/6]

ArgumentMismatch ( std::string  msg,
ExitCodes  exit_code 
)
inline

Definition at line 813 of file CLI11.hpp.

◆ ArgumentMismatch() [4/6]

ArgumentMismatch ( std::string  msg,
int  exit_code 
)
inline

Definition at line 813 of file CLI11.hpp.

◆ ArgumentMismatch() [5/6]

ArgumentMismatch ( std::string  msg)
inlineexplicit

Definition at line 814 of file CLI11.hpp.

◆ ArgumentMismatch() [6/6]

ArgumentMismatch ( std::string  name,
int  expected,
size_t  recieved 
)
inline

Definition at line 815 of file CLI11.hpp.

Member Function Documentation

◆ AtLeast()

static ArgumentMismatch AtLeast ( std::string  name,
int  num 
)
inlinestatic

Definition at line 822 of file CLI11.hpp.

◆ FlagOverride()

static ArgumentMismatch FlagOverride ( std::string  name)
inlinestatic

Definition at line 828 of file CLI11.hpp.

◆ TypedAtLeast()

static ArgumentMismatch TypedAtLeast ( std::string  name,
int  num,
std::string  type 
)
inlinestatic

Definition at line 825 of file CLI11.hpp.


The documentation for this class was generated from the following file: