11#include <boost/current_function.hpp>
39 virtual unsigned code(
void)
const = 0;
51 unsigned code(
void)
const override;
62 unsigned code(
void)
const override;
72 unsigned code(
void)
const override;
85 unsigned code(
void)
const override;
99 unsigned code(
void)
const override;
111 unsigned code(
void)
const override;
124 unsigned code(
void)
const override;
135 unsigned code(
void)
const override;
146 unsigned code(
void)
const override
160 unsigned code(
void)
const override;
171 unsigned code(
void)
const override;
181 unsigned code(
void)
const override;
191 unsigned code(
void)
const override;
201 unsigned code(
void)
const override;
211 unsigned code(
void)
const override;
223 unsigned code(
void)
const override;
233 unsigned code(
void)
const override;
243 unsigned code(
void)
const override;
254 unsigned code(
void)
const override;
264 unsigned code(
void)
const override;
274 unsigned code(
void)
const override;
284 unsigned code(
void)
const override;
294 unsigned code(
void)
const override;
305#define UHD_THROW_SITE_INFO(what) \
306 std::string(std::string(what) + "\n" + " in " + std::string(BOOST_CURRENT_FUNCTION) \
307 + "\n" + " at " + std::string(__FILE__) + ":" \
308 + BOOST_STRINGIZE(__LINE__) + "\n")
314#define UHD_THROW_INVALID_CODE_PATH() \
315 throw uhd::system_error(UHD_THROW_SITE_INFO("invalid code path"))
322#define UHD_ASSERT_THROW(code) \
325 throw uhd::assertion_error(UHD_THROW_SITE_INFO(#code)); \
#define UHD_API
Definition: config.h:70
Definition: build_info.hpp:12
Definition: exception.hpp:169
void dynamic_throw(void) const override
access_error * dynamic_clone(void) const override
unsigned code(void) const override
access_error(const std::string &what)
Definition: exception.hpp:49
assertion_error * dynamic_clone(void) const override
assertion_error(const std::string &what)
unsigned code(void) const override
void dynamic_throw(void) const override
Definition: exception.hpp:179
environment_error(const std::string &what)
environment_error * dynamic_clone(void) const override
void dynamic_throw(void) const override
unsigned code(void) const override
Definition: exception.hpp:37
exception(const std::string &what)
virtual void dynamic_throw(void) const =0
virtual exception * dynamic_clone(void) const =0
virtual unsigned code(void) const =0
Definition: exception.hpp:70
void dynamic_throw(void) const override
index_error(const std::string &what)
unsigned code(void) const override
index_error * dynamic_clone(void) const override
Definition: exception.hpp:189
io_error(const std::string &what)
io_error * dynamic_clone(void) const override
void dynamic_throw(void) const override
unsigned code(void) const override
Definition: exception.hpp:83
key_error(const std::string &what)
void dynamic_throw(void) const override
unsigned code(void) const override
key_error * dynamic_clone(void) const override
Definition: exception.hpp:60
lookup_error * dynamic_clone(void) const override
unsigned code(void) const override
void dynamic_throw(void) const override
lookup_error(const std::string &what)
Definition: exception.hpp:122
narrowing_error * dynamic_clone(void) const override
void dynamic_throw(void) const override
narrowing_error(const std::string &what)
unsigned code(void) const override
Definition: exception.hpp:158
not_implemented_error(const std::string &what)
unsigned code(void) const override
not_implemented_error * dynamic_clone(void) const override
void dynamic_throw(void) const override
Definition: exception.hpp:241
op_failed * dynamic_clone(void) const override
unsigned code(void) const override
op_failed(const std::string &what)
void dynamic_throw(void) const override
Definition: exception.hpp:262
void dynamic_throw(void) const override
op_seqerr * dynamic_clone(void) const override
op_seqerr(const std::string &what)
unsigned code(void) const override
Definition: exception.hpp:252
op_timeout * dynamic_clone(void) const override
op_timeout(const std::string &what)
unsigned code(void) const override
void dynamic_throw(void) const override
Definition: exception.hpp:272
op_timerr * dynamic_clone(void) const override
op_timerr(const std::string &what)
void dynamic_throw(void) const override
unsigned code(void) const override
Definition: exception.hpp:199
os_error * dynamic_clone(void) const override
void dynamic_throw(void) const override
unsigned code(void) const override
os_error(const std::string &what)
Definition: exception.hpp:282
void dynamic_throw(void) const override
unsigned code(void) const override
resolve_error * dynamic_clone(void) const override
resolve_error(const std::string &what)
Definition: exception.hpp:231
rfnoc_error * dynamic_clone(void) const override
rfnoc_error(const std::string &what)
unsigned code(void) const override
void dynamic_throw(void) const override
Definition: exception.hpp:292
routing_error(const std::string &what)
routing_error * dynamic_clone(void) const override
void dynamic_throw(void) const override
unsigned code(void) const override
Definition: exception.hpp:133
runtime_error(const std::string &what)
unsigned code(void) const override
void dynamic_throw(void) const override
runtime_error * dynamic_clone(void) const override
Definition: exception.hpp:221
unsigned code(void) const override
void dynamic_throw(void) const override
syntax_error * dynamic_clone(void) const override
syntax_error(const std::string &what)
Definition: exception.hpp:209
system_error(const std::string &what)
unsigned code(void) const override
void dynamic_throw(void) const override
system_error * dynamic_clone(void) const override
Definition: exception.hpp:97
void dynamic_throw(void) const override
type_error(const std::string &what)
unsigned code(void) const override
type_error * dynamic_clone(void) const override
Definition: exception.hpp:143
unsigned code(void) const override
Definition: exception.hpp:146
usb_error * dynamic_clone(void) const override
int _code
Definition: exception.hpp:144
usb_error(int code, const std::string &what)
void dynamic_throw(void) const override
Definition: exception.hpp:109
value_error(const std::string &what)
value_error * dynamic_clone(void) const override
unsigned code(void) const override
void dynamic_throw(void) const override