rm printError, Report::error throws exception

This commit is contained in:
James Cherry
2020-12-24 16:31:52 -08:00
parent 6fb6c93847
commit 078d69fc8d
13 changed files with 163 additions and 185 deletions
+11 -1
View File
@@ -17,7 +17,7 @@
#pragma once
#include <exception>
#include "DisallowCopyAssign.hh"
#include "Report.hh"
namespace sta {
@@ -31,6 +31,16 @@ public:
virtual const char *what() const noexcept = 0;
};
class ExceptionMsg : public Exception
{
public:
ExceptionMsg(const char *msg);
virtual const char *what() const noexcept;
private:
string msg_;
};
class ExceptionLine : public Exception
{
public: