/* */ #ifndef _D_DL_ABORT_EX_H_ #define _D_DL_ABORT_EX_H_ #include "RecoverableException.h" namespace aria2 { class DlAbortEx:public RecoverableException { protected: virtual SharedHandle copy() const { SharedHandle e(new DlAbortEx(*this)); return e; } public: DlAbortEx(const char* file, int line, const std::string& msg): RecoverableException(file, line, msg) {} DlAbortEx(const char* file, int line, const std::string& msg, const Exception& cause): RecoverableException(file, line, msg, cause) {} DlAbortEx(const char* file, int line, const RecoverableException& e): RecoverableException(file, line, e) {} DlAbortEx(const char* file, int line, const std::string& msg, downloadresultcode::RESULT code): RecoverableException(file, line, msg, code) {} }; #define DL_ABORT_EX(arg) DlAbortEx(__FILE__, __LINE__, arg) #define DL_ABORT_EX2(arg1, arg2) DlAbortEx(__FILE__, __LINE__, arg1, arg2) } // namespace aria2 #endif // _D_DL_ABORT_EX_H_