Use printErrorInformation() over printExceptionInformation() where possible

This commit is contained in:
Kamil Śliwak
2023-08-11 14:15:56 +02:00
parent 4020552e1d
commit a59fc39f10
3 changed files with 6 additions and 5 deletions
+4
View File
@@ -52,6 +52,10 @@ public:
m_withErrorIds(_withErrorIds)
{}
// WARNING: Use the xyzErrorInformation() variants over xyzExceptionInformation() when you
// do have access to an Error instance. Error is implicitly convertible to util::Exception
// but the conversion loses the error ID.
/// Prints source location if it is given.
void printSourceLocation(SourceReference const& _ref);
void printExceptionInformation(SourceReferenceExtractor::Message const& _msg);