Used to rethrow exceptions with modified messages
| 572 | |
| 573 | // Used to rethrow exceptions with modified messages |
| 574 | struct rethrown_exception : public std::exception { |
| 575 | std::string message; |
| 576 | rethrown_exception(const std::string & msg) : message(msg) {} |
| 577 | const char* what() const noexcept override { |
| 578 | return message.c_str(); |
| 579 | } |
| 580 | }; |
| 581 | |
| 582 | ////////////////////// |
| 583 |