]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/part.cpp
Rework exceptions and use maputils
[libs/gltk.git] / source / part.cpp
index 7eb19c7755f3a006bc7a81bc31d5c6841ce66361..0ba03a3d3e1d027e2e50021212db4b1cfabd8862 100644 (file)
@@ -18,7 +18,7 @@ Part::Part(const string &n):
 const Graphic *Part::get_graphic(State state) const
 {
        if(state>N_STATES_)
-               throw InvalidParameterValue("Invalid state");
+               throw invalid_argument("Part::get_graphic");
 
        return graphic[state];
 }