/* */ #ifndef _D_RECOVERABLE_EXCEPTION_H_ #define _D_RECOVERABLE_EXCEPTION_H_ #include "Exception.h" #include "DownloadResultCode.h" namespace aria2 { class RecoverableException:public Exception { private: downloadresultcode::RESULT code_; protected: virtual SharedHandle copy() const; public: RecoverableException(const char* file, int line, const std::string& msg); RecoverableException(const char* file, int line, const std::string& msg, const Exception& cause); RecoverableException(const char* file, int line, const RecoverableException& e); RecoverableException (const char* file, int line, int errnoArg, const std::string& msg); RecoverableException(const char* file, int line, const std::string& msg, downloadresultcode::RESULT result); downloadresultcode::RESULT getCode() const { return code_; } }; } // namespace aria2 #endif // _D_RECOVERABLE_EXCEPTION_EX_H_