/* */ #ifndef _D_RECOVERABLE_EXCEPTION_H_ #define _D_RECOVERABLE_EXCEPTION_H_ #include "Exception.h" namespace aria2 { class RecoverableException:public Exception { protected: virtual SharedHandle copy() const { SharedHandle e(new RecoverableException(*this)); return e; } public: RecoverableException(const std::string& msg):Exception(msg) {} RecoverableException(const std::string& msg, const Exception& cause):Exception(msg, cause) {} RecoverableException(const RecoverableException& e):Exception(e) {} }; } // namespace aria2 #endif // _D_RECOVERABLE_EXCEPTION_EX_H_