diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-08-01 14:31:37 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-09 10:21:53 -0700 |
commit | ce2e7e5197ea7db5454a381c5b75c1c63b2d2d59 (patch) | |
tree | 92ff13fb95222cc5e595172cc393150a96f93049 /host/include | |
parent | f360059b99d4ae11e5279b8999364ec1fe2997a3 (diff) | |
download | uhd-ce2e7e5197ea7db5454a381c5b75c1c63b2d2d59.tar.gz uhd-ce2e7e5197ea7db5454a381c5b75c1c63b2d2d59.tar.bz2 uhd-ce2e7e5197ea7db5454a381c5b75c1c63b2d2d59.zip |
uhd: Added syntax error exception type
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 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. |