aboutsummaryrefslogtreecommitdiffstats
path: root/src/exception.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exception.cpp')
-rw-r--r--src/exception.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exception.cpp b/src/exception.cpp
index 9cfd2201..b01fa033 100644
--- a/src/exception.cpp
+++ b/src/exception.cpp
@@ -46,6 +46,12 @@ exception::exception(const string& what, const exception& other)
}
+exception::exception(const exception& e)
+ : std::exception(), m_what(e.what()), m_other(e.m_other == NULL ? NULL : e.m_other->clone())
+{
+}
+
+
exception::~exception() throw()
{
delete (m_other);