summaryrefslogtreecommitdiff
path: root/src/DownloadFailureException.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DownloadFailureException.h')
-rw-r--r--src/DownloadFailureException.h18
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