/* */ #ifndef D_FATAL_EXCEPTION_H #define D_FATAL_EXCEPTION_H #include "Exception.h" namespace aria2 { class FatalException:public Exception { protected: virtual SharedHandle copy() const; public: FatalException(const char* file, int line, const std::string& msg); FatalException(const char* file, int line, const std::string& msg, const Exception& cause); }; #define FATAL_EXCEPTION(arg) \ FatalException(__FILE__, __LINE__, arg) #define FATAL_EXCEPTION2(arg1, arg2) \ FatalException(__FILE__, __LINE__, arg1, arg2) } // namespace aria2 #endif // D_FATAL_EXCEPTION_EX_H