aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/convert/gen_convert_pred.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/convert/gen_convert_pred.py')
-rw-r--r--host/lib/convert/gen_convert_pred.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/host/lib/convert/gen_convert_pred.py b/host/lib/convert/gen_convert_pred.py
index d2f90bf41..360fbcf44 100644
--- a/host/lib/convert/gen_convert_pred.py
+++ b/host/lib/convert/gen_convert_pred.py
@@ -21,11 +21,11 @@ TMPL_TEXT = """
/***********************************************************************
* This file was generated by $file on $time.strftime("%c")
**********************************************************************/
+\#include <uhd/exception.hpp>
\#include <boost/tokenizer.hpp>
\#include <boost/lexical_cast.hpp>
\#include <boost/detail/endian.hpp>
\#include <boost/cstdint.hpp>
-\#include <stdexcept>
\#include <string>
\#include <vector>
@@ -37,9 +37,10 @@ enum dir_type{
DIR_CPU_TO_OTW = 1
};
-struct pred_error : std::runtime_error{
- pred_error(const std::string &what)
- :std::runtime_error("convert::make_pred: " + what){
+struct pred_error : uhd::value_error{
+ pred_error(const std::string &what):
+ uhd::value_error("convert::make_pred: " + what)
+ {
/* NOP */
}
};