#include "gui/ConnWindow.hh"
#include "alg/mussa_class.hh"
+#include "mussa_exceptions.hh"
#include <iostream>
using namespace std;
if ((run_mode == 'f') || (run_mode == 'n'))
{
err_msg = an_analysis.load_mupa_file(a_file_path);
- err_msg = an_analysis.analyze(window, threshold, ana_mode, ent_thres);
+ an_analysis.analyze(window, threshold, ana_mode, ent_thres);
//an_overlord.do_analysis();
}
}
}
-struct ParseError
-{
- string err;
- ParseError(const string& msg) : err(msg) { } ;
-};
// minimal arg reading function, not very robust to errors
char
{
cout << "Error: \'" << an_arg;
cout << "\' is not a valid analysis mode for -a argument" << endl;
- throw ParseError("not valid -a argument");
+ throw cmdline_error("not valid -a argument");
}
*a_file_path = * ++argv;
i++;
{
cout << "Error: \'" << an_arg;
cout << "\' is not a valid run mode for -m argument" << endl;
- throw ParseError("bad argument -m");
+ throw cmdline_error("bad argument -m");
}
}
else if (an_arg == "-w") // alternate window size arg