/* */ #ifndef D_UNKNOWN_OPTION_EXCEPTION_H #define D_UNKNOWN_OPTION_EXCEPTION_H #include "RecoverableException.h" namespace aria2 { class UnknownOptionException:public RecoverableException { private: std::string unknownOption_; protected: virtual SharedHandle copy() const; public: UnknownOptionException(const char* file, int line, const std::string& unknownOption); UnknownOptionException(const char* file, int line, const std::string& unknownOption, const Exception& cause); virtual ~UnknownOptionException() throw(); const std::string& getUnknownOption() const { return unknownOption_; } }; #define UNKNOWN_OPTION_EXCEPTION(arg) \ UnknownOptionException(__FILE__, __LINE__, arg) #define UNKNOWN_OPTION_EXCEPTION2(arg1, arg2) \ UnknownOptionException(__FILE__, __LINE__, arg1, arg2) } // namespace aria2 #endif // D_UNKNOWN_OPTION_EXCEPTION_EX_H