]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/trainproperties.cpp
Fix remaining exception class names
[r2c2.git] / source / engineer / trainproperties.cpp
index f36035f52c31f1e2250f779f560ea0e578336e38..67e096a8ea84b6e1cce858e97fcc831eb24289b8 100644 (file)
@@ -1,5 +1,5 @@
 #include <msp/gltk/label.h>
-#include <msp/strings/formatter.h>
+#include <msp/strings/format.h>
 #include <msp/strings/lexicalcast.h>
 #include "libr2c2/driver.h"
 #include "libr2c2/vehicle.h"
@@ -171,5 +171,5 @@ const VehicleType &TrainProperties::get_vehicle_type(unsigned n, bool loco)
                ++i;
        }
 
-       throw InvalidParameterValue("Vehicle type index out of range");
+       throw out_of_range("TrainProperties::get_vehicle_type");
 }