/* */ #ifndef _D_DOWNLOAD_FAILURE_EXCEPTION_H_ #define _D_DOWNLOAD_FAILURE_EXCEPTION_H_ #include "RecoverableException.h" /** * Throw this exception when a RequestGroup should aborted. * FYI, DlAbortEx is the exception to abort 1 Request. */ class DownloadFailureException : public RecoverableException { public: DownloadFailureException(Exception* cause = 0):RecoverableException(cause) {} DownloadFailureException(const char* msg, ...) { va_list ap; va_start(ap, msg); setMsg(string(msg), ap); va_end(ap); } DownloadFailureException(Exception* cause, const char* msg, ...):RecoverableException(cause) { va_list ap; va_start(ap, msg); setMsg(string(msg), ap); va_end(ap); } }; #endif // _D_DOWNLOAD_FAILURE_EXCEPTION_H_