Option++  2.0
C++ library for reading command-line options
Public Member Functions | List of all members
optionpp::type_error Class Reference

Exception indicating a type error. More...

#include <error.hpp>

Inheritance diagram for optionpp::type_error:
Inheritance graph
[legend]
Collaboration diagram for optionpp::type_error:
Collaboration graph
[legend]

Public Member Functions

 type_error (const std::string &msg, const std::string &fn_name)
 Constructor. More...
 
- Public Member Functions inherited from optionpp::error
 error (const std::string &msg, const std::string &fn_name)
 Constructor. More...
 
const std::string & function () const
 Return the name of function that threw the exception. More...
 

Detailed Description

Exception indicating a type error.

Constructor & Destructor Documentation

◆ type_error()

optionpp::type_error::type_error ( const std::string &  msg,
const std::string &  fn_name 
)
inline

Constructor.

Parameters
msgDescription of the error.
fn_nameName of the function in which error occurred.

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