CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cxxopts::OptionException Class Reference

#include <cxxopts.h>

Inheritance diagram for cxxopts::OptionException:
cxxopts::OptionParseException cxxopts::OptionSpecException cxxopts::Argument_incorrect_type cxxopts::Missing_argument_exception cxxopts::Option_not_exists_exception cxxopts::Option_not_has_argument_exception cxxopts::Option_not_present_exception cxxopts::Option_required_exception cxxopts::Option_requires_argument_exception cxxopts::Option_syntax_exception cxxopts::Invalid_option_format_error cxxopts::Option_exists_error

Public Member Functions

 OptionException (const std::string &message)
 
virtual const char * what () const noexcept
 

Private Attributes

std::string m_message
 

Detailed Description

Definition at line 206 of file cxxopts.h.

Constructor & Destructor Documentation

◆ OptionException()

cxxopts::OptionException::OptionException ( const std::string &  message)
inline

Definition at line 208 of file cxxopts.h.

208 : m_message(message) {}
std::string m_message
Definition: cxxopts.h:213

Member Function Documentation

◆ what()

virtual const char* cxxopts::OptionException::what ( ) const
inlinevirtualnoexcept

Definition at line 210 of file cxxopts.h.

References m_message.

210 { return m_message.c_str(); }
std::string m_message
Definition: cxxopts.h:213

Member Data Documentation

◆ m_message

std::string cxxopts::OptionException::m_message
private

Definition at line 213 of file cxxopts.h.

Referenced by what().