/* */ #ifndef D_OPTION_HANDLER_EXCEPTION_H #define D_OPTION_HANDLER_EXCEPTION_H #include "RecoverableException.h" #include "prefs.h" namespace aria2 { class OptionHandlerException : public RecoverableException { private: PrefPtr pref_; protected: virtual std::shared_ptr copy() const CXX11_OVERRIDE; public: OptionHandlerException(const char* file, int line, PrefPtr pref); OptionHandlerException(const char* file, int line, PrefPtr pref, const Exception& cause); virtual ~OptionHandlerException() throw(); PrefPtr getPref() const { return pref_; } }; #define OPTION_HANDLER_EXCEPTION(arg) \ OptionHandlerException(__FILE__, __LINE__, arg) #define OPTION_HANDLER_EXCEPTION2(arg1, arg2) \ OptionHandlerException(__FILE__, __LINE__, arg1, arg2) } // namespace aria2 #endif // D_OPTION_HANDLER_EXCEPTION_EX_H