diff options
author | crupest <crupest@outlook.com> | 2024-06-01 17:09:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-06-08 17:01:55 +0800 |
commit | d1f409530db6f9b712fd672c4c3154cac7eebad1 (patch) | |
tree | 1e48a3e2ff14e66aac2503a74df28cca7d85d02c /src/common/Exception.cpp | |
parent | ad796a167e33b54c7fa23ea21c73d57dba4fc928 (diff) | |
download | cru-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.cpp | 3 |
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() {} |