sisi4s
Loading...
Searching...
No Matches
CLI::RequiredError Class Reference

Thrown when a required option is missing. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::RequiredError:
Collaboration diagram for CLI::RequiredError:

Public Member Functions

 RequiredError (std::string msg, ExitCodes exit_code)
 
 RequiredError (std::string msg, int exit_code)
 
 RequiredError (std::string name)
 
- 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 RequiredError Subcommand (std::size_t min_subcom)
 
static RequiredError Option (std::size_t min_option, std::size_t max_option, std::size_t used, const std::string &option_list)
 

Protected Member Functions

 RequiredError (std::string ename, std::string msg, int exit_code)
 
 RequiredError (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 a required option is missing.

Constructor & Destructor Documentation

◆ RequiredError() [1/5]

CLI::RequiredError::RequiredError ( std::string  ename,
std::string  msg,
int  exit_code 
)
inlineprotected

◆ RequiredError() [2/5]

CLI::RequiredError::RequiredError ( std::string  ename,
std::string  msg,
ExitCodes  exit_code 
)
inlineprotected

◆ RequiredError() [3/5]

CLI::RequiredError::RequiredError ( std::string  msg,
ExitCodes  exit_code 
)
inline

◆ RequiredError() [4/5]

CLI::RequiredError::RequiredError ( std::string  msg,
int  exit_code 
)
inline

◆ RequiredError() [5/5]

CLI::RequiredError::RequiredError ( std::string  name)
inlineexplicit

Member Function Documentation

◆ Option()

static RequiredError CLI::RequiredError::Option ( std::size_t  min_option,
std::size_t  max_option,
std::size_t  used,
const std::string &  option_list 
)
inlinestatic

◆ Subcommand()

static RequiredError CLI::RequiredError::Subcommand ( std::size_t  min_subcom)
inlinestatic

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