00001 #ifndef ERRORS_H 00002 #define ERRORS_H 00003 00004 NORETURN void fail(const char *msg, ...); 00005 NORETURN void sysfail(const char *msg, ...); 00006 00007 class ext_fail_exception : public std::exception 00008 { 00009 public: 00010 ext_fail_exception(const std::string &_msg) : msg(_msg) {} 00011 ~ext_fail_exception() throw() {} 00012 const std::string msg; 00013 }; 00014 00015 extern bool CrawlIsCrashing; 00016 00017 #endif