diff options
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/exception.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/host/include/uhd/exception.hpp b/host/include/uhd/exception.hpp index 5ae5d790e..a8cbb8134 100644 --- a/host/include/uhd/exception.hpp +++ b/host/include/uhd/exception.hpp @@ -80,6 +80,13 @@ namespace uhd{ virtual void dynamic_throw(void) const; }; + struct UHD_API narrowing_error : value_error{ + narrowing_error(const std::string &what); + virtual unsigned code(void) const; + virtual narrowing_error *dynamic_clone(void) const; + virtual void dynamic_throw(void) const; + }; + struct UHD_API runtime_error : exception{ runtime_error(const std::string &what); virtual unsigned code(void) const; |