summaryrefslogtreecommitdiffstats
path: root/host/lib/wax.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-24 16:35:29 -0800
committerJosh Blum <josh@joshknows.com>2011-02-24 16:35:29 -0800
commit4357f5d3c043245b5c086b20742795624af9f432 (patch)
tree7a3cfc9f5b3ffc285ecd611655d741355dcb39b8 /host/lib/wax.cpp
parent16f08844d7b6ccbdcfdf17963b88cadb7525ddc6 (diff)
downloaduhd-4357f5d3c043245b5c086b20742795624af9f432.tar.gz
uhd-4357f5d3c043245b5c086b20742795624af9f432.tar.bz2
uhd-4357f5d3c043245b5c086b20742795624af9f432.zip
uhd: replaced instanced of std::exception with the uhd exceptions
Diffstat (limited to 'host/lib/wax.cpp')
-rw-r--r--host/lib/wax.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/host/lib/wax.cpp b/host/lib/wax.cpp
index 0e2e82a3a..5f658acd8 100644
--- a/host/lib/wax.cpp
+++ b/host/lib/wax.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010 Ettus Research LLC
+// Copyright 2010-2011 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -16,6 +16,7 @@
//
#include <uhd/wax.hpp>
+#include <uhd/exception.hpp>
#include <boost/format.hpp>
#include <stdexcept>
@@ -97,7 +98,7 @@ wax::obj wax::obj::operator[](const obj &key){
return val.as<link_args_t>()()[key];
}
//unknown obj
- throw std::runtime_error("cannot use [] on non wax::obj link");
+ throw uhd::type_error("cannot use [] on non wax::obj link");
}
else{
return proxy_args_t(this, key);
@@ -142,9 +143,9 @@ boost::any wax::obj::resolve(void) const{
}
void wax::obj::get(const obj &, obj &){
- throw std::runtime_error("Cannot call get on wax obj base class");
+ throw uhd::type_error("Cannot call get on wax obj base class");
}
void wax::obj::set(const obj &, const obj &){
- throw std::runtime_error("Cannot call set on wax obj base class");
+ throw uhd::type_error("Cannot call set on wax obj base class");
}