| 204 | } |
| 205 | |
| 206 | void SourceReferenceFormatter::printExceptionInformation(SourceReferenceExtractor::Message const& _msg) |
| 207 | { |
| 208 | printPrimaryMessage(m_stream, _msg.primary.message, _msg._typeOrSeverity, _msg.errorId, m_colored, m_withErrorIds); |
| 209 | printSourceLocation(_msg.primary); |
| 210 | |
| 211 | for (auto const& secondary: _msg.secondary) |
| 212 | { |
| 213 | secondaryColored() << "Note"; |
| 214 | messageColored() << ":" << (secondary.message.empty() ? "" : (" " + secondary.message)) << '\n'; |
| 215 | printSourceLocation(secondary); |
| 216 | } |
| 217 | |
| 218 | m_stream << '\n'; |
| 219 | } |
| 220 | |
| 221 | void SourceReferenceFormatter::printExceptionInformation(util::Exception const& _exception, Error::Type _type) |
| 222 | { |
no test coverage detected