| 35 | } |
| 36 | |
| 37 | std::string Exception::lineInfo() const |
| 38 | { |
| 39 | char const* const* file = boost::get_error_info<boost::throw_file>(*this); |
| 40 | int const* line = boost::get_error_info<boost::throw_line>(*this); |
| 41 | std::string ret; |
| 42 | if (file) |
| 43 | ret += *file; |
| 44 | ret += ':'; |
| 45 | if (line) |
| 46 | ret += std::to_string(*line); |
| 47 | return ret; |
| 48 | } |
| 49 | |
| 50 | std::string const* Exception::comment() const noexcept |
| 51 | { |
no test coverage detected