Add error/warning suppression with suppress_msg and unsuppress_msg commands (#157)

* Add error/warning suppression with `suppress_msg` and `unsuppress_msg` commands

* Fixes

* Merge docs

* Fixes

* Remove optional arg from class

* Add where to find message codes

* Update docs

* Requested fixes

* Deal with errors on the TCL side instead of C++ side

* Update ok file

* Add back in C++ side error suppression and have tests for both C++/TCL side suppression

* Requested fixes to ChangeLog and unifying suppression in C++/TCL

* Requested fixes

* Requested test adjustments

* Smallfixes

* Smallfixes

* Another smallfix
This commit is contained in:
Akash Levy
2025-01-17 11:20:19 -08:00
committed by GitHub
parent cc3b911b6d
commit fbb4b8c6e6
13 changed files with 201 additions and 39 deletions

View File

@@ -34,11 +34,14 @@ public:
class ExceptionMsg : public Exception
{
public:
ExceptionMsg(const char *msg);
ExceptionMsg(const char *msg,
const bool suppressed);
virtual const char *what() const noexcept;
virtual bool suppressed() const { return suppressed_; }
private:
string msg_;
bool suppressed_;
};
class ExceptionLine : public Exception