Skip to content

Commit 3221f41

Browse files
Add constructor with reason to invalid_source_file_exceptiont
1 parent 25c2339 commit 3221f41

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/util/exception_utils.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ std::string analysis_exceptiont::what() const
8787
return reason;
8888
}
8989

90+
invalid_source_file_exceptiont::invalid_source_file_exceptiont(
91+
std::string reason)
92+
: reason(std::move(reason))
93+
{
94+
}
95+
9096
std::string invalid_source_file_exceptiont::what() const
9197
{
9298
return reason;

src/util/exception_utils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ class analysis_exceptiont : public cprover_exception_baset
126126
class invalid_source_file_exceptiont : public cprover_exception_baset
127127
{
128128
public:
129+
explicit invalid_source_file_exceptiont(std::string reason);
129130
std::string what() const override;
130131

131132
private:

0 commit comments

Comments
 (0)