9{
10 try {
11
13
14
16
17
18 return 0;
19 }
22 }
23 catch (std::exception& e) {
24 std::cerr << e.what() << std::endl;
25 return 1;
26 }
27 catch (...) {
28 std::cerr << "Exception occurred!" << std::endl;
29 return 1;
30 }
31}
The base exception class to derive Utopia-specific exceptions from.
Definition exceptions.hh:15
void run()
Run the model from the current time to the maximum time.
Definition model.hh:581
Simple model of evolutionary games on grids.
Definition SimpleEG.hh:72
A class to use at the top level of the model hierarchy as a mock parent.
Definition model.hh:1017
int handle_exception(exc_t &exc)
A helper function to handle a Utopia-specific exception.
Definition exceptions.hh:140