/* */ #ifndef D_OPTION_HANDLER_EXCEPTION_H #define D_OPTION_HANDLER_EXCEPTION_H #include "RecoverableException.h" namespace aria2 { struct Pref; class OptionHandlerException:public RecoverableException { private: const Pref* pref_; protected: virtual SharedHandle copy() const; public: OptionHandlerException(const char* file, int line, const Pref* pref); OptionHandlerException(const char* file, int line, const Pref* pref, const Exception& cause); virtual ~OptionHandlerException() throw(); const Pref* 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