summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--project2/common/exceptions.cpp4
-rw-r--r--project2/common/exceptions.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/project2/common/exceptions.cpp b/project2/common/exceptions.cpp
index 29b4fa0..1140e96 100644
--- a/project2/common/exceptions.cpp
+++ b/project2/common/exceptions.cpp
@@ -51,6 +51,10 @@ two_part_error::two_part_error(const std::string & w1, const std::string & w2) :
{
}
+two_part_error::~two_part_error() throw()
+{
+}
+
std::string
two_part_error::msg() const throw()
{
diff --git a/project2/common/exceptions.h b/project2/common/exceptions.h
index 123afc9..1051220 100644
--- a/project2/common/exceptions.h
+++ b/project2/common/exceptions.h
@@ -35,6 +35,7 @@ class syscall_error : public MsgBufferedException {
class two_part_error : public MsgBufferedException {
public:
two_part_error(const std::string & what1, const std::string & what2);
+ ~two_part_error() throw();
protected:
std::string msg() const throw();
private: