aboutsummaryrefslogtreecommitdiff
path: root/src/common/Exception.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-06-01 17:09:44 +0800
committercrupest <crupest@outlook.com>2024-06-08 17:01:55 +0800
commitd1f409530db6f9b712fd672c4c3154cac7eebad1 (patch)
tree1e48a3e2ff14e66aac2503a74df28cca7d85d02c /src/common/Exception.cpp
parentad796a167e33b54c7fa23ea21c73d57dba4fc928 (diff)
downloadcru-d1f409530db6f9b712fd672c4c3154cac7eebad1.tar.gz
cru-d1f409530db6f9b712fd672c4c3154cac7eebad1.tar.bz2
cru-d1f409530db6f9b712fd672c4c3154cac7eebad1.zip
HALF WORK: refactor something and implement part of subprocess.
Diffstat (limited to 'src/common/Exception.cpp')
-rw-r--r--src/common/Exception.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/Exception.cpp b/src/common/Exception.cpp
index 37fa0038..4110ad56 100644
--- a/src/common/Exception.cpp
+++ b/src/common/Exception.cpp
@@ -5,7 +5,8 @@
#include <cerrno>
namespace cru {
-Exception::Exception(String message) : message_(std::move(message)) {}
+Exception::Exception(String message, std::unique_ptr<std::exception> inner)
+ : message_(std::move(message)), inner_(std::move(inner)) {}
Exception::~Exception() {}