X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fintellibox.cpp;h=82623e1760891a4b4e0e9d55a3094eddb5bc1f5e;hb=621c5c938d70ba0d155e0eda91a708db0a52c0dc;hp=09e4792e36a0d5837ef12b14a48f7ce9fd04fbac;hpb=9bab44d27a89602565270e71d8684fb3f2fac5be;p=r2c2.git diff --git a/source/libr2c2/intellibox.cpp b/source/libr2c2/intellibox.cpp index 09e4792..82623e1 100644 --- a/source/libr2c2/intellibox.cpp +++ b/source/libr2c2/intellibox.cpp @@ -42,7 +42,7 @@ Intellibox::Intellibox(const string &dev): } if(!ok) - throw Exception("IB not detected"); + throw runtime_error("IB not detected"); if(p50) serial.write("xZzA1\r", 6); @@ -354,7 +354,7 @@ Intellibox::Protocol Intellibox::map_protocol(const string &name) const else if(name=="MM-27") return MM_27; else - throw InvalidParameterValue("Unknown protocol"); + throw invalid_argument("Intellibox::map_protocol"); } void Intellibox::command(Command cmd)