18 #ifndef INCLUDED_UHD_UTILS_EXCEPTION_HPP 19 #define INCLUDED_UHD_UTILS_EXCEPTION_HPP 22 #include <boost/current_function.hpp> 40 virtual unsigned code(
void)
const = 0;
45 virtual unsigned code(
void)
const;
50 virtual unsigned code(
void)
const;
55 virtual unsigned code(
void)
const;
60 virtual unsigned code(
void)
const;
65 virtual unsigned code(
void)
const;
70 virtual unsigned code(
void)
const;
75 virtual unsigned code(
void)
const;
80 virtual unsigned code(
void)
const;
85 virtual unsigned code(
void)
const;
90 virtual unsigned code(
void)
const;
95 virtual unsigned code(
void)
const;
100 virtual unsigned code(
void)
const;
109 #define UHD_THROW_SITE_INFO(what) std::string( \ 110 std::string(what) + "\n" + \ 111 " in " + std::string(BOOST_CURRENT_FUNCTION) + "\n" + \ 112 " at " + std::string(__FILE__) + ":" + BOOST_STRINGIZE(__LINE__) + "\n" \ 119 #define UHD_THROW_INVALID_CODE_PATH() \ 120 throw uhd::system_error(UHD_THROW_SITE_INFO("invalid code path")) 127 #define UHD_ASSERT_THROW(code) if (not (code)) \ 128 throw uhd::assertion_error(UHD_THROW_SITE_INFO(#code)); \ Definition: exception.hpp:38
Definition: exception.hpp:83
Definition: exception.hpp:93
Definition: exception.hpp:78
Definition: exception.hpp:48
Definition: exception.hpp:58
Definition: exception.hpp:73
Definition: exception.hpp:98
Definition: exception.hpp:68
#define UHD_API
Definition: config.hpp:76
Definition: convert.hpp:28
Definition: exception.hpp:88
Definition: exception.hpp:53
Definition: exception.hpp:43
Definition: exception.hpp:63