diff options
| author | Josh Blum <josh@joshknows.com> | 2011-02-24 16:35:29 -0800 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2011-02-24 16:35:29 -0800 | 
| commit | 4357f5d3c043245b5c086b20742795624af9f432 (patch) | |
| tree | 7a3cfc9f5b3ffc285ecd611655d741355dcb39b8 /host/lib/usrp/subdev_spec.cpp | |
| parent | 16f08844d7b6ccbdcfdf17963b88cadb7525ddc6 (diff) | |
| download | uhd-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/subdev_spec.cpp')
| -rw-r--r-- | host/lib/usrp/subdev_spec.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/host/lib/usrp/subdev_spec.cpp b/host/lib/usrp/subdev_spec.cpp index d5d950f1f..6912afec8 100644 --- a/host/lib/usrp/subdev_spec.cpp +++ b/host/lib/usrp/subdev_spec.cpp @@ -16,11 +16,11 @@  //  #include <uhd/usrp/subdev_spec.hpp> +#include <uhd/exception.hpp>  #include <boost/algorithm/string.hpp> //for split  #include <boost/tokenizer.hpp>  #include <boost/format.hpp>  #include <boost/foreach.hpp> -#include <stdexcept>  #include <sstream>  #include <vector> @@ -51,7 +51,7 @@ subdev_spec_t::subdev_spec_t(const std::string &markup){          switch(db_sd.size()){          case 1: this->push_back(subdev_spec_pair_t("", db_sd.front())); break;          case 2: this->push_back(subdev_spec_pair_t(db_sd.front(), db_sd.back())); break; -        default: throw std::runtime_error("invalid subdev-spec markup string: "+markup); +        default: throw uhd::value_error("invalid subdev-spec markup string: "+markup);          }      }  } | 
