33 void note(
const std::string &tag,
const std::vector<std::string> &lines)
const override;
35 void warn_note(
const std::string &tag,
const std::vector<std::string> &lines)
const override;
37 void warn(
const std::string &tag,
const std::vector<std::string> &lines)
const override;
39 void err(
const std::string &tag,
const std::vector<std::string> &lines)
const override;
56 [[nodiscard]]
const std::vector<std::vector<std::string>> &
notes()
const
70 [[nodiscard]]
const std::vector<std::vector<std::string>> &
warn_notes()
const
84 [[nodiscard]]
const std::vector<std::vector<std::string>> &
warnings()
const
98 [[nodiscard]]
const std::vector<std::vector<std::string>> &
errors()
const
115 return fatal_proximates_;
127 [[nodiscard]]
const std::vector<std::vector<std::string>> &
fatal_steps()
const
141 [[nodiscard]]
const std::vector<std::vector<std::string>> &
fatal_roots()
const
157 return note_tag_counts_;
171 return warn_note_tag_counts_;
185 return warning_tag_counts_;
199 return error_tag_counts_;
203 mutable std::vector<std::vector<std::string>> notes_;
204 mutable std::vector<std::vector<std::string>> warn_notes_;
205 mutable std::vector<std::vector<std::string>> warnings_;
206 mutable std::vector<std::vector<std::string>> errors_;
207 mutable std::vector<std::vector<std::string>> fatal_proximates_;
208 mutable std::vector<std::vector<std::string>> fatal_steps_;
209 mutable std::vector<std::vector<std::string>> fatal_roots_;
210 mutable std::map<std::string, size_t> note_tag_counts_;
211 mutable std::map<std::string, size_t> warn_note_tag_counts_;
212 mutable std::map<std::string, size_t> warning_tag_counts_;
213 mutable std::map<std::string, size_t> error_tag_counts_;
Testing implementation of UserDiagnostics that buffers all diagnostic output.
const std::map< std::string, size_t > & note_tag_counts() const
Get the count of note messages by tag.
const std::vector< std::vector< std::string > > & warnings() const
Get the buffered warning messages.
const std::vector< std::vector< std::string > > & errors() const
Get the buffered error messages.
const std::vector< std::vector< std::string > > & fatal_proximates() const
Get the buffered fatal proximate error messages.
void warn(const std::string &tag, const std::vector< std::string > &lines) const override
Display a multi-line tagged warning message.
const std::map< std::string, size_t > & warn_note_tag_counts() const
Get the count of warning note messages by tag.
const std::map< std::string, size_t > & error_tag_counts() const
Get the count of error messages by tag.
void emit_fatal_root(const Error &err) const override
Emit the root cause error in a fatal error chain.
const std::vector< std::vector< std::string > > & fatal_steps() const
Get the buffered fatal step error messages.
void emit_fatal_proximate(const Error &err) const override
Emit the proximate (immediate) error in a fatal error chain.
void err(const std::string &tag, const std::vector< std::string > &lines) const override
Display a multi-line tagged error message.
const std::vector< std::vector< std::string > > & fatal_roots() const
Get the buffered fatal root error messages.
const std::vector< std::vector< std::string > > & warn_notes() const
Get the buffered warning note messages.
const std::map< std::string, size_t > & warning_tag_counts() const
Get the count of warning messages by tag.
void warn_note(const std::string &tag, const std::vector< std::string > &lines) const override
Display a multi-line tagged warning note message.
void note(const std::string &tag, const std::vector< std::string > &lines) const override
Display a multi-line tagged informational note message.
const std::vector< std::vector< std::string > > & notes() const
Get the buffered note messages.
void emit_fatal_step(const Error &err) const override
Emit an intermediate step error in a fatal error chain.
Abstract interface for all error types used in ChainableResult error chains.
Abstract interface for structured error reporting and diagnostic output.