summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/warning.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/utils/warning.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/utils/warning.cpp')
-rw-r--r--host/lib/utils/warning.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/utils/warning.cpp b/host/lib/utils/warning.cpp
index bc4c79b6e..6a94a0a2c 100644
--- a/host/lib/utils/warning.cpp
+++ b/host/lib/utils/warning.cpp
@@ -16,12 +16,12 @@
//
#include <uhd/utils/warning.hpp>
+#include <uhd/exception.hpp>
#include <boost/tokenizer.hpp>
#include <uhd/utils/static.hpp>
#include <uhd/types/dict.hpp>
#include <boost/foreach.hpp>
#include <sstream>
-#include <stdexcept>
#include <iostream>
#include <vector>
@@ -76,7 +76,7 @@ void warning::register_handler(
}
warning::handler_t warning::unregister_handler(const std::string &name){
- if (not get_registry().has_key(name)) throw std::runtime_error(
+ if (not get_registry().has_key(name)) throw uhd::key_error(
"The warning registry does not have a handler registered to " + name
);
return get_registry().pop(name);