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

Thrown when conversion call back fails, such as when an int fails to coerce to a string. More...

#include <CLI11.hpp>

Inheritance diagram for CLI::ConversionError:
Collaboration diagram for CLI::ConversionError:

Public Member Functions

 ConversionError (std::string msg, ExitCodes exit_code)
 
 ConversionError (std::string msg, int exit_code)
 
 ConversionError (std::string msg)
 
 ConversionError (std::string member, std::string name)
 
 ConversionError (std::string name, std::vector< std::string > results)
 
- 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 ConversionError TooManyInputsFlag (std::string name)
 
static ConversionError TrueFalse (std::string name)
 

Protected Member Functions

 ConversionError (std::string ename, std::string msg, int exit_code)
 
 ConversionError (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 conversion call back fails, such as when an int fails to coerce to a string.

Constructor & Destructor Documentation

◆ ConversionError() [1/7]

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

◆ ConversionError() [2/7]

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

◆ ConversionError() [3/7]

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

◆ ConversionError() [4/7]

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

◆ ConversionError() [5/7]

CLI::ConversionError::ConversionError ( std::string  msg)
inlineexplicit

◆ ConversionError() [6/7]

CLI::ConversionError::ConversionError ( std::string  member,
std::string  name 
)
inline

◆ ConversionError() [7/7]

CLI::ConversionError::ConversionError ( std::string  name,
std::vector< std::string >  results 
)
inline

Member Function Documentation

◆ TooManyInputsFlag()

static ConversionError CLI::ConversionError::TooManyInputsFlag ( std::string  name)
inlinestatic

◆ TrueFalse()

static ConversionError CLI::ConversionError::TrueFalse ( std::string  name)
inlinestatic

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