aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/dboard_base.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/usrp/dboard_base.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/usrp/dboard_base.cpp')
-rw-r--r--host/lib/usrp/dboard_base.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/host/lib/usrp/dboard_base.cpp b/host/lib/usrp/dboard_base.cpp
index 6c4e29d9e..999dd9ffc 100644
--- a/host/lib/usrp/dboard_base.cpp
+++ b/host/lib/usrp/dboard_base.cpp
@@ -59,12 +59,12 @@ dboard_id_t dboard_base::get_tx_id(void){
**********************************************************************/
xcvr_dboard_base::xcvr_dboard_base(ctor_args_t args) : dboard_base(args){
if (get_rx_id() == dboard_id_t::none()){
- throw std::runtime_error(str(boost::format(
+ throw uhd::runtime_error(str(boost::format(
"cannot create xcvr board when the rx id is \"%s\""
) % dboard_id_t::none().to_pp_string()));
}
if (get_tx_id() == dboard_id_t::none()){
- throw std::runtime_error(str(boost::format(
+ throw uhd::runtime_error(str(boost::format(
"cannot create xcvr board when the tx id is \"%s\""
) % dboard_id_t::none().to_pp_string()));
}
@@ -79,7 +79,7 @@ xcvr_dboard_base::~xcvr_dboard_base(void){
**********************************************************************/
rx_dboard_base::rx_dboard_base(ctor_args_t args) : dboard_base(args){
if (get_tx_id() != dboard_id_t::none()){
- throw std::runtime_error(str(boost::format(
+ throw uhd::runtime_error(str(boost::format(
"cannot create rx board when the tx id is \"%s\""
" -> expected a tx id of \"%s\""
) % get_tx_id().to_pp_string() % dboard_id_t::none().to_pp_string()));
@@ -91,11 +91,11 @@ rx_dboard_base::~rx_dboard_base(void){
}
void rx_dboard_base::tx_get(const wax::obj &, wax::obj &){
- throw std::runtime_error("cannot call tx_get on a rx dboard");
+ throw uhd::runtime_error("cannot call tx_get on a rx dboard");
}
void rx_dboard_base::tx_set(const wax::obj &, const wax::obj &){
- throw std::runtime_error("cannot call tx_set on a rx dboard");
+ throw uhd::runtime_error("cannot call tx_set on a rx dboard");
}
/***********************************************************************
@@ -103,7 +103,7 @@ void rx_dboard_base::tx_set(const wax::obj &, const wax::obj &){
**********************************************************************/
tx_dboard_base::tx_dboard_base(ctor_args_t args) : dboard_base(args){
if (get_rx_id() != dboard_id_t::none()){
- throw std::runtime_error(str(boost::format(
+ throw uhd::runtime_error(str(boost::format(
"cannot create tx board when the rx id is \"%s\""
" -> expected a rx id of \"%s\""
) % get_rx_id().to_pp_string() % dboard_id_t::none().to_pp_string()));
@@ -115,9 +115,9 @@ tx_dboard_base::~tx_dboard_base(void){
}
void tx_dboard_base::rx_get(const wax::obj &, wax::obj &){
- throw std::runtime_error("cannot call rx_get on a tx dboard");
+ throw uhd::runtime_error("cannot call rx_get on a tx dboard");
}
void tx_dboard_base::rx_set(const wax::obj &, const wax::obj &){
- throw std::runtime_error("cannot call rx_set on a tx dboard");
+ throw uhd::runtime_error("cannot call rx_set on a tx dboard");
}