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/DownloadFailureException.h | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/DownloadFailureException.h')
| -rw-r--r-- | src/DownloadFailureException.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/DownloadFailureException.h b/src/DownloadFailureException.h index 920869e7..11796e2c 100644 --- a/src/DownloadFailureException.h +++ b/src/DownloadFailureException.h @@ -42,30 +42,28 @@ namespace aria2 { * Throw this exception when a RequestGroup should aborted. * FYI, DlAbortEx is the exception to abort 1 Request. */ -class DownloadFailureException:public RecoverableException { +class DownloadFailureException : public RecoverableException { protected: virtual std::shared_ptr<Exception> copy() const CXX11_OVERRIDE; + public: DownloadFailureException(const char* file, int line, const std::string& msg); DownloadFailureException(const char* file, int line, const std::string& msg, const Exception& cause); - DownloadFailureException(const char* file, int line, - const std::string& msg, + DownloadFailureException(const char* file, int line, const std::string& msg, error_code::Value code); - DownloadFailureException(const char* file, int line, - int errNum, - const std::string& msg, - error_code::Value code); + DownloadFailureException(const char* file, int line, int errNum, + const std::string& msg, error_code::Value code); }; -#define DOWNLOAD_FAILURE_EXCEPTION(arg) \ +#define DOWNLOAD_FAILURE_EXCEPTION(arg) \ DownloadFailureException(__FILE__, __LINE__, arg) -#define DOWNLOAD_FAILURE_EXCEPTION2(arg1, arg2) \ +#define DOWNLOAD_FAILURE_EXCEPTION2(arg1, arg2) \ DownloadFailureException(__FILE__, __LINE__, arg1, arg2) -#define DOWNLOAD_FAILURE_EXCEPTION3(arg1, arg2, arg3) \ +#define DOWNLOAD_FAILURE_EXCEPTION3(arg1, arg2, arg3) \ DownloadFailureException(__FILE__, __LINE__, arg1, arg2, arg3) } // namespace aria2 |
