diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-28 22:30:06 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-28 22:30:06 +0900 |
| commit | ce6eb592dab38eb802b1da5ebdc440bd40deec0d (patch) | |
| tree | 8f813e6c85162df0becbe9f62a70892753f7f9d6 /src/DlAbortEx.cc | |
| parent | e8f3592314f60ef26e68f7923541e97ca3c58076 (diff) | |
Added Exception ctor which takes both errNum and errorCode.
Also added DlAbortEx ctor which has same signature with new Exception
dtor. Added DL_ABORT_EX3 macro to use added ctor.
Diffstat (limited to 'src/DlAbortEx.cc')
| -rw-r--r-- | src/DlAbortEx.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/DlAbortEx.cc b/src/DlAbortEx.cc index beb6d18d..81490ca4 100644 --- a/src/DlAbortEx.cc +++ b/src/DlAbortEx.cc @@ -49,12 +49,18 @@ DlAbortEx::DlAbortEx(const char* file, int line, const std::string& msg, const Exception& cause): RecoverableException(file, line, msg, cause) {} +DlAbortEx::DlAbortEx(const char* file, int line, const std::string& msg, + error_code::Value code): + RecoverableException(file, line, msg, code) {} + DlAbortEx::DlAbortEx (const char* file, int line, int errNum, const std::string& msg): RecoverableException(file, line, errNum, msg) {} -DlAbortEx::DlAbortEx(const char* file, int line, const std::string& msg, - error_code::Value code): - RecoverableException(file, line, msg, code) {} +DlAbortEx::DlAbortEx +(const char* file, int line, int errNum, const std::string& msg, + error_code::Value errorCode) + : RecoverableException(file, line, errNum, msg, errorCode) +{} } // namespace aria2 |
