diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-20 11:56:33 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-06-20 11:56:33 +0000 |
| commit | c7795c63ce06279a5d51624164c377215fb2fd6e (patch) | |
| tree | 77993aa69295e8156cee8d6a399029298f0d14bc /src/DownloadFailureException.h | |
| parent | 237f15b491fe98768ec2e04fa9a69ca6411dd99e (diff) | |
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added separete *.cc files for exception classes.
* src/DlAbortEx.cc
* src/DlAbortEx.h
* src/DlRetryEx.cc
* src/DlRetryEx.h
* src/DownloadFailureException.cc
* src/DownloadFailureException.h
* src/FatalException.cc
* src/FatalException.h
* src/Makefile.am
* src/RecoverableException.cc
* src/RecoverableException.h
Diffstat (limited to 'src/DownloadFailureException.h')
| -rw-r--r-- | src/DownloadFailureException.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/DownloadFailureException.h b/src/DownloadFailureException.h index 3dc57600..adb3c7a2 100644 --- a/src/DownloadFailureException.h +++ b/src/DownloadFailureException.h @@ -44,24 +44,19 @@ namespace aria2 { */ class DownloadFailureException:public RecoverableException { protected: - virtual SharedHandle<Exception> copy() const - { - SharedHandle<Exception> e(new DownloadFailureException(*this)); - return e; - } + virtual SharedHandle<Exception> copy() const; public: - DownloadFailureException(const char* file, int line, const std::string& msg): - RecoverableException(file, line, msg) {} + DownloadFailureException(const char* file, int line, const std::string& msg); + DownloadFailureException(const char* file, int line, const std::string& msg, - const Exception& cause): - RecoverableException(file, line, msg, cause) {} + const Exception& cause); + DownloadFailureException(const char* file, int line, - const DownloadFailureException& e): - RecoverableException(file, line, e) {} + const DownloadFailureException& e); + DownloadFailureException(const char* file, int line, const std::string& msg, - downloadresultcode::RESULT code): - RecoverableException(file, line, msg, code) {} + downloadresultcode::RESULT code); }; #define DOWNLOAD_FAILURE_EXCEPTION(arg) \ |
