blob: b12e86db096710f19e530c30259439034115db3d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef ERRORS_H
#define ERRORS_H
NORETURN void fail(PRINTF(0, ));
NORETURN void sysfail(PRINTF(0, ));
NORETURN void corrupted(PRINTF(0, ));
class ext_fail_exception : public exception
{
public:
ext_fail_exception(const string &_msg) : msg(_msg) {}
~ext_fail_exception() throw() {}
const string msg;
};
class corrupted_save : public ext_fail_exception
{
public:
corrupted_save(const string &_msg) : ext_fail_exception(_msg) {}
};
extern bool CrawlIsCrashing;
#endif
|