18 #ifndef INCLUDED_UHD_EXCEPTION_HPP 19 #define INCLUDED_UHD_EXCEPTION_HPP 22 #include <boost/current_function.hpp> 47 virtual unsigned code(
void)
const = 0;
48 virtual exception *dynamic_clone(
void)
const = 0;
49 virtual void dynamic_throw(
void)
const = 0;
54 virtual unsigned code(
void)
const;
55 virtual assertion_error *dynamic_clone(
void)
const;
56 virtual void dynamic_throw(
void)
const;
61 virtual unsigned code(
void)
const;
62 virtual lookup_error *dynamic_clone(
void)
const;
63 virtual void dynamic_throw(
void)
const;
68 virtual unsigned code(
void)
const;
69 virtual index_error *dynamic_clone(
void)
const;
70 virtual void dynamic_throw(
void)
const;
75 virtual unsigned code(
void)
const;
76 virtual key_error *dynamic_clone(
void)
const;
77 virtual void dynamic_throw(
void)
const;
82 virtual unsigned code(
void)
const;
83 virtual type_error *dynamic_clone(
void)
const;
84 virtual void dynamic_throw(
void)
const;
89 virtual unsigned code(
void)
const;
90 virtual value_error *dynamic_clone(
void)
const;
91 virtual void dynamic_throw(
void)
const;
96 virtual unsigned code(
void)
const;
97 virtual runtime_error *dynamic_clone(
void)
const;
98 virtual void dynamic_throw(
void)
const;
103 usb_error(
int code,
const std::string &what);
104 virtual unsigned code(
void)
const {
return _code; };
105 virtual usb_error *dynamic_clone(
void)
const;
106 virtual void dynamic_throw(
void)
const;
111 virtual unsigned code(
void)
const;
112 virtual not_implemented_error *dynamic_clone(
void)
const;
113 virtual void dynamic_throw(
void)
const;
118 virtual unsigned code(
void)
const;
119 virtual environment_error *dynamic_clone(
void)
const;
120 virtual void dynamic_throw(
void)
const;
125 virtual unsigned code(
void)
const;
126 virtual io_error *dynamic_clone(
void)
const;
127 virtual void dynamic_throw(
void)
const;
132 virtual unsigned code(
void)
const;
133 virtual os_error *dynamic_clone(
void)
const;
134 virtual void dynamic_throw(
void)
const;
139 virtual unsigned code(
void)
const;
140 virtual system_error *dynamic_clone(
void)
const;
141 virtual void dynamic_throw(
void)
const;
146 virtual unsigned code(
void)
const;
147 virtual syntax_error *dynamic_clone(
void)
const;
148 virtual void dynamic_throw(
void)
const;
157 #define UHD_THROW_SITE_INFO(what) std::string( \ 158 std::string(what) + "\n" + \ 159 " in " + std::string(BOOST_CURRENT_FUNCTION) + "\n" + \ 160 " at " + std::string(__FILE__) + ":" + BOOST_STRINGIZE(__LINE__) + "\n" \ 167 #define UHD_THROW_INVALID_CODE_PATH() \ 168 throw uhd::system_error(UHD_THROW_SITE_INFO("invalid code path")) 175 #define UHD_ASSERT_THROW(code) {if (not (code)) \ 176 throw uhd::assertion_error(UHD_THROW_SITE_INFO(#code)); \ Definition: exception.hpp:45
Definition: exception.hpp:116
Definition: exception.hpp:130
Definition: exception.hpp:109
Definition: exception.hpp:59
Definition: exception.hpp:73
Definition: exception.hpp:94
Definition: exception.hpp:137
int _code
Definition: exception.hpp:102
Definition: exception.hpp:87
Definition: build_info.hpp:25
Definition: exception.hpp:123
Definition: exception.hpp:66
Definition: exception.hpp:144
Definition: exception.hpp:52
#define UHD_API
Definition: config.h:73
virtual unsigned code(void) const
Definition: exception.hpp:104
Definition: exception.hpp:80
Definition: exception.hpp:101