diff options
author | Josh Blum <josh@joshknows.com> | 2010-04-26 15:20:18 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-04-26 15:20:18 -0700 |
commit | 6f1bdcb58608e3a7c2625841e3a8f1c6297bb544 (patch) | |
tree | 41434e1b13c97538214b7d7c03f660ad921ca965 /host/include | |
parent | b1992806e130216fdab963c2154f489189b8c3b5 (diff) | |
download | uhd-6f1bdcb58608e3a7c2625841e3a8f1c6297bb544.tar.gz uhd-6f1bdcb58608e3a7c2625841e3a8f1c6297bb544.tar.bz2 uhd-6f1bdcb58608e3a7c2625841e3a8f1c6297bb544.zip |
Renamed the prop set/get error macros so they make sense for not-implemented properties.
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/props.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/host/include/uhd/utils/props.hpp b/host/include/uhd/utils/props.hpp index 768655e36..516102a5f 100644 --- a/host/include/uhd/utils/props.hpp +++ b/host/include/uhd/utils/props.hpp @@ -66,18 +66,18 @@ namespace uhd{ typedef boost::error_info<struct tag_prop_info, std::string> prop_info; /*! - * Throw an error when trying to get a write only property. + * Throw when getting a not-implemented or write-only property. * Throw-site information will be included with this error. */ - #define UHD_THROW_PROP_WRITE_ONLY() \ - BOOST_THROW_EXCEPTION(uhd::prop_error() << uhd::prop_info("cannot get write-only property")) + #define UHD_THROW_PROP_GET_ERROR() \ + BOOST_THROW_EXCEPTION(uhd::prop_error() << uhd::prop_info("cannot get this property")) /*! - * Throw an error when trying to set a read only property. + * Throw when setting a not-implemented or read-only property. * Throw-site information will be included with this error. */ - #define UHD_THROW_PROP_READ_ONLY() \ - BOOST_THROW_EXCEPTION(uhd::prop_error() << uhd::prop_info("cannot set read-only property")) + #define UHD_THROW_PROP_SET_ERROR() \ + BOOST_THROW_EXCEPTION(uhd::prop_error() << uhd::prop_info("cannot set this property")) } //namespace uhd |