summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-26 15:20:18 -0700
committerJosh Blum <josh@joshknows.com>2010-04-26 15:20:18 -0700
commit6f1bdcb58608e3a7c2625841e3a8f1c6297bb544 (patch)
tree41434e1b13c97538214b7d7c03f660ad921ca965 /host/include
parentb1992806e130216fdab963c2154f489189b8c3b5 (diff)
downloaduhd-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.hpp12
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