8 #ifndef INCLUDED_UHD_EXCEPTION_HPP 9 #define INCLUDED_UHD_EXCEPTION_HPP 12 #include <boost/current_function.hpp> 40 virtual unsigned code(
void)
const = 0;
41 virtual exception* dynamic_clone(
void)
const = 0;
42 virtual void dynamic_throw(
void)
const = 0;
52 virtual unsigned code(
void)
const;
53 virtual assertion_error* dynamic_clone(
void)
const;
54 virtual void dynamic_throw(
void)
const;
63 virtual unsigned code(
void)
const;
64 virtual lookup_error* dynamic_clone(
void)
const;
65 virtual void dynamic_throw(
void)
const;
73 virtual unsigned code(
void)
const;
74 virtual index_error* dynamic_clone(
void)
const;
75 virtual void dynamic_throw(
void)
const;
86 virtual unsigned code(
void)
const;
87 virtual key_error* dynamic_clone(
void)
const;
88 virtual void dynamic_throw(
void)
const;
100 virtual unsigned code(
void)
const;
101 virtual type_error* dynamic_clone(
void)
const;
102 virtual void dynamic_throw(
void)
const;
112 virtual unsigned code(
void)
const;
113 virtual value_error* dynamic_clone(
void)
const;
114 virtual void dynamic_throw(
void)
const;
125 virtual unsigned code(
void)
const;
126 virtual narrowing_error* dynamic_clone(
void)
const;
127 virtual void dynamic_throw(
void)
const;
136 virtual unsigned code(
void)
const;
137 virtual runtime_error* dynamic_clone(
void)
const;
138 virtual void dynamic_throw(
void)
const;
146 usb_error(
int code,
const std::string& what);
147 virtual unsigned code(
void)
const 151 virtual usb_error* dynamic_clone(
void)
const;
152 virtual void dynamic_throw(
void)
const;
161 virtual unsigned code(
void)
const;
162 virtual not_implemented_error* dynamic_clone(
void)
const;
163 virtual void dynamic_throw(
void)
const;
171 virtual unsigned code(
void)
const;
172 virtual environment_error* dynamic_clone(
void)
const;
173 virtual void dynamic_throw(
void)
const;
181 virtual unsigned code(
void)
const;
182 virtual io_error* dynamic_clone(
void)
const;
183 virtual void dynamic_throw(
void)
const;
191 virtual unsigned code(
void)
const;
192 virtual os_error* dynamic_clone(
void)
const;
193 virtual void dynamic_throw(
void)
const;
201 virtual unsigned code(
void)
const;
202 virtual system_error* dynamic_clone(
void)
const;
203 virtual void dynamic_throw(
void)
const;
213 virtual unsigned code(
void)
const;
214 virtual syntax_error* dynamic_clone(
void)
const;
215 virtual void dynamic_throw(
void)
const;
224 #define UHD_THROW_SITE_INFO(what) \ 225 std::string(std::string(what) + "\n" + " in " + std::string(BOOST_CURRENT_FUNCTION) \ 226 + "\n" + " at " + std::string(__FILE__) + ":" \ 227 + BOOST_STRINGIZE(__LINE__) + "\n") 233 #define UHD_THROW_INVALID_CODE_PATH() \ 234 throw uhd::system_error(UHD_THROW_SITE_INFO("invalid code path")) 241 #define UHD_ASSERT_THROW(code) \ 244 throw uhd::assertion_error(UHD_THROW_SITE_INFO(#code)); \ Definition: exception.hpp:37
Definition: exception.hpp:168
Definition: exception.hpp:188
Definition: exception.hpp:158
Definition: exception.hpp:60
Definition: exception.hpp:83
Definition: exception.hpp:133
Definition: exception.hpp:198
int _code
Definition: exception.hpp:145
Definition: exception.hpp:109
Definition: exception.hpp:122
Definition: build_info.hpp:13
Definition: exception.hpp:178
Definition: exception.hpp:70
Definition: exception.hpp:210
Definition: exception.hpp:49
#define UHD_API
Definition: config.h:68
virtual unsigned code(void) const
Definition: exception.hpp:147
Definition: exception.hpp:97
Definition: exception.hpp:143