From ce2e7e5197ea7db5454a381c5b75c1c63b2d2d59 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 1 Aug 2016 14:31:37 -0700 Subject: uhd: Added syntax error exception type --- host/include/uhd/exception.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/exception.hpp b/host/include/uhd/exception.hpp index 7eddf5f26..98982b01f 100644 --- a/host/include/uhd/exception.hpp +++ b/host/include/uhd/exception.hpp @@ -141,6 +141,13 @@ namespace uhd{ virtual void dynamic_throw(void) const; }; + struct UHD_API syntax_error : exception{ + syntax_error(const std::string &what); + virtual unsigned code(void) const; + virtual syntax_error *dynamic_clone(void) const; + virtual void dynamic_throw(void) const; + }; + /*! * Create a formatted string with throw-site information. * Fills in the function name, file name, and line number. -- cgit v1.2.3