summaryrefslogtreecommitdiff
path: root/src/Exception.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/Exception.h
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/Exception.h')
-rw-r--r--src/Exception.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/Exception.h b/src/Exception.h
index c25d7d41..afb9190a 100644
--- a/src/Exception.h
+++ b/src/Exception.h
@@ -44,7 +44,7 @@
namespace aria2 {
-class Exception:public std::exception {
+class Exception : public std::exception {
private:
const char* file_;
@@ -58,6 +58,7 @@ private:
// Exception that this object wraps. Normally this cause_ is the
// root cause of this exception.
std::shared_ptr<Exception> cause_;
+
protected:
virtual std::shared_ptr<Exception> copy() const = 0;
@@ -65,8 +66,7 @@ public:
Exception(const char* file, int line, const std::string& msg);
Exception(const char* file, int line, const std::string& msg,
- error_code::Value errorCode,
- const Exception& cause);
+ error_code::Value errorCode, const Exception& cause);
// errorCode_ is initializedwith cause.errorCode_.
Exception(const char* file, int line, const std::string& msg,
const Exception& cause);
@@ -85,15 +85,9 @@ public:
std::string stackTrace() const;
- int getErrNum() const
- {
- return errNum_;
- }
+ int getErrNum() const { return errNum_; }
- error_code::Value getErrorCode() const
- {
- return errorCode_;
- }
+ error_code::Value getErrorCode() const { return errorCode_; }
};
} // namespace aria2