8 {
9 try {
10
12
13
15
16
17 return 0;
18 }
21 }
22 catch (std::exception& e) {
23 std::cerr << e.what() << std::endl;
24 return 1;
25 }
26 catch (...) {
27 std::cerr << "Exception occurred!" << std::endl;
28 return 1;
29 }
30}
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
The CopyMeBare Model; the bare-basics a model needs.
Definition CopyMeBare.hh:32
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