]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/options.cpp
Fix remaining exception class names
[r2c2.git] / source / engineer / options.cpp
index b5c36cd5409cca9e43822fda7215e9f1e9018b52..89e1fd109be155a3172aa488afc2619bf89d42fe 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010  Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #include <msp/core/getopt.h>
 #include <msp/fs/utils.h>
 #include <msp/strings/lexicalcast.h>
@@ -42,12 +35,12 @@ Options::Options(int argc, char **argv):
                        screen_h = lexical_cast<unsigned>(m[2].str);
                }
                else
-                       throw UsageError("Invalid resolution");
+                       throw usage_error("Invalid resolution");
        }
 
        const vector<string> &args = getopt.get_args();
        if(args.empty())
-               throw UsageError("No layout given");
+               throw usage_error("No layout given");
 
        layout_fn = args[0];