8 #ifndef INCLUDED_UHD_EXCEPTION_HPP 9 #define INCLUDED_UHD_EXCEPTION_HPP 12 #include <boost/current_function.hpp> 37 virtual unsigned code(
void)
const = 0;
38 virtual exception *dynamic_clone(
void)
const = 0;
39 virtual void dynamic_throw(
void)
const = 0;
44 virtual unsigned code(
void)
const;
45 virtual assertion_error *dynamic_clone(
void)
const;
46 virtual void dynamic_throw(
void)
const;
51 virtual unsigned code(
void)
const;
52 virtual lookup_error *dynamic_clone(
void)
const;
53 virtual void dynamic_throw(
void)
const;
58 virtual unsigned code(
void)
const;
59 virtual index_error *dynamic_clone(
void)
const;
60 virtual void dynamic_throw(
void)
const;
65 virtual unsigned code(
void)
const;
66 virtual key_error *dynamic_clone(
void)
const;
67 virtual void dynamic_throw(
void)
const;
72 virtual unsigned code(
void)
const;
73 virtual type_error *dynamic_clone(
void)
const;
74 virtual void dynamic_throw(
void)
const;
79 virtual unsigned code(
void)
const;
80 virtual value_error *dynamic_clone(
void)
const;
81 virtual void dynamic_throw(
void)
const;
86 virtual unsigned code(
void)
const;
87 virtual narrowing_error *dynamic_clone(
void)
const;
88 virtual void dynamic_throw(
void)
const;
93 virtual unsigned code(
void)
const;
94 virtual runtime_error *dynamic_clone(
void)
const;
95 virtual void dynamic_throw(
void)
const;
100 usb_error(
int code,
const std::string &what);
101 virtual unsigned code(
void)
const {
return _code; };
102 virtual usb_error *dynamic_clone(
void)
const;
103 virtual void dynamic_throw(
void)
const;
108 virtual unsigned code(
void)
const;
109 virtual not_implemented_error *dynamic_clone(
void)
const;
110 virtual void dynamic_throw(
void)
const;
115 virtual unsigned code(
void)
const;
116 virtual environment_error *dynamic_clone(
void)
const;
117 virtual void dynamic_throw(
void)
const;
122 virtual unsigned code(
void)
const;
123 virtual io_error *dynamic_clone(
void)
const;
124 virtual void dynamic_throw(
void)
const;
129 virtual unsigned code(
void)
const;
130 virtual os_error *dynamic_clone(
void)
const;
131 virtual void dynamic_throw(
void)
const;
136 virtual unsigned code(
void)
const;
137 virtual system_error *dynamic_clone(
void)
const;
138 virtual void dynamic_throw(
void)
const;
143 virtual unsigned code(
void)
const;
144 virtual syntax_error *dynamic_clone(
void)
const;
145 virtual void dynamic_throw(
void)
const;
154 #define UHD_THROW_SITE_INFO(what) std::string( \ 155 std::string(what) + "\n" + \ 156 " in " + std::string(BOOST_CURRENT_FUNCTION) + "\n" + \ 157 " at " + std::string(__FILE__) + ":" + BOOST_STRINGIZE(__LINE__) + "\n" \ 164 #define UHD_THROW_INVALID_CODE_PATH() \ 165 throw uhd::system_error(UHD_THROW_SITE_INFO("invalid code path")) 172 #define UHD_ASSERT_THROW(code) {if (not (code)) \ 173 throw uhd::assertion_error(UHD_THROW_SITE_INFO(#code)); \ Definition: exception.hpp:35
Definition: exception.hpp:113
Definition: exception.hpp:127
Definition: exception.hpp:106
Definition: exception.hpp:49
Definition: exception.hpp:63
Definition: exception.hpp:91
Definition: exception.hpp:134
int _code
Definition: exception.hpp:99
Definition: exception.hpp:77
Definition: exception.hpp:84
Definition: build_info.hpp:14
Definition: exception.hpp:120
Definition: exception.hpp:56
Definition: exception.hpp:141
Definition: exception.hpp:42
#define UHD_API
Definition: config.h:63
virtual unsigned code(void) const
Definition: exception.hpp:101
Definition: exception.hpp:70
Definition: exception.hpp:98