mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-09-07 11:51:47 +02:00
rm printError, Report::error throws exception
This commit is contained in:
+11
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user