//////////////////////////////////////////////////////////////////////
| 259 | |
| 260 | /////////////////////////////////////////////////////////////////////////// |
| 261 | std::string error_code::get_message() const |
| 262 | { |
| 263 | if (exception_) |
| 264 | { |
| 265 | try |
| 266 | { |
| 267 | std::rethrow_exception(exception_); |
| 268 | } |
| 269 | catch (std::exception const& be) |
| 270 | { |
| 271 | return be.what(); |
| 272 | } |
| 273 | } |
| 274 | return get_error_what(*this); // provide at least minimal error text |
| 275 | } |
| 276 | |
| 277 | /////////////////////////////////////////////////////////////////////////// |
| 278 | error_code::error_code(error_code const& rhs) |
no test coverage detected