diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-28 21:36:01 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-28 21:36:01 +0900 |
| commit | 476ba70a9f64f88396f70bdd7636e0b86bbeb18e (patch) | |
| tree | cd52a4a3e7f587475377733036086ac42c868bcb /src/RecoverableException.h | |
| parent | 45fde1adaf35fd02ef60197308db96f256791337 (diff) | |
Moved errorCode_ from RecoverableException to Exception and added errorCode to
stackTrace.
Also changed errno to errNum in stackTrace.
Diffstat (limited to 'src/RecoverableException.h')
| -rw-r--r-- | src/RecoverableException.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/RecoverableException.h b/src/RecoverableException.h index fe0b4b80..9873758e 100644 --- a/src/RecoverableException.h +++ b/src/RecoverableException.h @@ -35,14 +35,10 @@ #ifndef D_RECOVERABLE_EXCEPTION_H #define D_RECOVERABLE_EXCEPTION_H #include "Exception.h" -#include "error_code.h" namespace aria2 { class RecoverableException:public Exception { -private: - error_code::Value code_; - protected: virtual SharedHandle<Exception> copy() const; public: @@ -51,13 +47,11 @@ public: RecoverableException(const char* file, int line, const std::string& msg, const Exception& cause); - RecoverableException - (const char* file, int line, int errNum, const std::string& msg); - RecoverableException(const char* file, int line, const std::string& msg, - error_code::Value result); + error_code::Value errorCode); - error_code::Value getCode() const { return code_; } + RecoverableException + (const char* file, int line, int errNum, const std::string& msg); }; } // namespace aria2 |
