Exception infrastructure
Is there a specific reason why we have our own exception class in src/exceptions.hh
?
I found the interface from <exception>
quite good, I think it would be a good idea to adapt it.
https://en.cppreference.com/w/cpp/error/exception
Relevant are:
- logic_error
- invalid_argument
- domain_error
- length_error
- out_of_range
- runtime_error
- range_error
- overflow_error
- underflow_error
- system_error(C++11)
- ios_base::failure(C++11)
- filesystem::filesystem_error(C++17)
- bad_alloc