Simplification of exception raising/handling in Bob
Created by: anjos
The purpose of this issue is to keep track of work done in order to:
- reduce the amount of custom exceptions which seem to serve no purpose
- improve the readability of error messages, mainly from the python side
The plan is to stop having custom exceptions for each little problem we have in the code and use boost::format
in conjunction with std::runtime_error
to throw customized exceptions every where.
Here is an example:
boost::format m("the value %f is not valid for parameter `foo'");
m % foo_value;
throw std::runtime_error(m.str());