summaryrefslogtreecommitdiff
path: root/src/RecoverableException.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 21:36:01 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-11-28 21:36:01 +0900
commit476ba70a9f64f88396f70bdd7636e0b86bbeb18e (patch)
treecd52a4a3e7f587475377733036086ac42c868bcb /src/RecoverableException.h
parent45fde1adaf35fd02ef60197308db96f256791337 (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.h12
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