diff options
author | Balint Seeber <balint.seeber@ettus.com> | 2015-07-27 14:15:29 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-08-03 10:11:17 -0700 |
commit | e1672fa7eedb00a977c39b7e80bb18521493b524 (patch) | |
tree | 66be1a633fafe1d50f82151e238bb498a2030770 /host/include | |
parent | 8737c550f535b738c0fad703d7302a305ef871d2 (diff) | |
download | uhd-e1672fa7eedb00a977c39b7e80bb18521493b524.tar.gz uhd-e1672fa7eedb00a977c39b7e80bb18521493b524.tar.bz2 uhd-e1672fa7eedb00a977c39b7e80bb18521493b524.zip |
uhd: Added usb_error exception type
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/exception.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/include/uhd/exception.hpp b/host/include/uhd/exception.hpp index 69e902fd5..a21106166 100644 --- a/host/include/uhd/exception.hpp +++ b/host/include/uhd/exception.hpp @@ -98,6 +98,14 @@ namespace uhd{ virtual void dynamic_throw(void) const; }; + struct UHD_API usb_error : runtime_error{ + int _code; + usb_error(int code, const std::string &what); + virtual unsigned code(void) const { return _code; }; + virtual usb_error *dynamic_clone(void) const; + virtual void dynamic_throw(void) const; + }; + struct UHD_API not_implemented_error : runtime_error{ not_implemented_error(const std::string &what); virtual unsigned code(void) const; |