Option++
2.0
C++ library for reading command-line options
|
Go to the documentation of this file.
25 #ifndef OPTIONPP_ERROR_HPP
26 #define OPTIONPP_ERROR_HPP
36 class error :
public std::logic_error {
43 error(
const std::string& msg,
const std::string& fn_name)
44 : logic_error(msg), m_function{fn_name} {}
50 const std::string&
function()
const {
return m_function; }
53 std::string m_function;
67 :
error(msg, fn_name) {}
81 const std::string& fn_name)
82 :
error(msg, fn_name) {}
95 type_error(
const std::string& msg,
const std::string& fn_name)
96 :
error(msg, fn_name) {}
Exception indicating out of range access.
Definition: error.hpp:59
error(const std::string &msg, const std::string &fn_name)
Constructor.
Definition: error.hpp:43
bad_dereference(const std::string &msg, const std::string &fn_name)
Constructor.
Definition: error.hpp:80
Exception indicating an invalid iterator was dereferenced.
Definition: error.hpp:73
type_error(const std::string &msg, const std::string &fn_name)
Constructor.
Definition: error.hpp:95
out_of_range(const std::string &msg, const std::string &fn_name)
Constructor.
Definition: error.hpp:66
Library namespace.
Definition: error.hpp:31
Exception indicating a type error.
Definition: error.hpp:88
Base class for library exceptions.
Definition: error.hpp:36