diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/Exception.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/Exception.h')
| -rw-r--r-- | src/Exception.h | 16 |
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 |
