]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/profile.cpp
Fix remaining exception class names
[r2c2.git] / source / libr2c2 / profile.cpp
index 2741cac2958c3a848ba39b48aa7ba304b72289da..a9951b2aebc5ab88139edd69c1447b97f7333064 100644 (file)
@@ -55,7 +55,7 @@ void Profile::append_vertex(const Vector &p, bool smooth)
 const Profile::Vertex &Profile::get_vertex(unsigned i) const
 {
        if(i>=vertices.size())
-               throw InvalidParameterValue("Index out of range");
+               throw out_of_range("Profile::get_vertex");
        return vertices[i];
 }