Skip to content

Commit 060ec5d

Browse files
authored
Merge pull request #3099 from hannes-steffenhagen-diffblue/feature-invalid_source_file_exception
Add constructor with reason to invalid_source_file_exceptiont
2 parents 35ee875 + 3221f41 commit 060ec5d

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
@@ -98,6 +98,12 @@ std::string analysis_exceptiont::what() const
9898
return reason;
9999
}
100100

101+
invalid_source_file_exceptiont::invalid_source_file_exceptiont(
102+
std::string reason)
103+
: reason(std::move(reason))
104+
{
105+
}
106+
101107
std::string invalid_source_file_exceptiont::what() const
102108
{
103109
return reason;

src/util/exception_utils.h

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

132133
private:

0 commit comments

Comments
 (0)