]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/path.cpp
Fix remaining exception class names
[r2c2.git] / source / 3d / path.cpp
index 98ead14774c3ac7904f128945d292fb18291f815..44c54ab35dc8defbce1df8a4535100dacbd5b29d 100644 (file)
@@ -6,6 +6,7 @@
 #include "track.h"
 #include "tracktype.h"
 
+using namespace std;
 using namespace Msp;
 
 namespace R2C2 {
@@ -32,7 +33,7 @@ void Path3D::set_automatic()
 void Path3D::set_path(unsigned p)
 {
        if(!(track.get_track().get_type().get_paths()&(1<<p)))
-               throw InvalidParameterValue("Invalid path");
+               throw invalid_argument("Path3D::set_path");
        automatic = false;
        paths = 1<<p;
 }
@@ -40,7 +41,7 @@ void Path3D::set_path(unsigned p)
 void Path3D::set_mask(unsigned p)
 {
        if(p&~track.get_track().get_type().get_paths())
-               throw InvalidParameterValue("Invalid path mask");
+               throw invalid_argument("Path3D::set_mask");
        automatic = false;
        paths = p;
 }