]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/intellibox.cpp
Fix remaining exception class names
[r2c2.git] / source / libr2c2 / intellibox.cpp
index 09e4792e36a0d5837ef12b14a48f7ce9fd04fbac..82623e1760891a4b4e0e9d55a3094eddb5bc1f5e 100644 (file)
@@ -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)