aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/exception.hpp7
1 files changed, 7 insertions, 0 deletions
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.