~ubuntu-branches/debian/stretch/amoeba/stretch

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
 * generic exception class
 */

class Exception {
public:
	Exception(const char *msg);
	Exception(const char *owner, const char *msg);
	~Exception();

	char *get_error();
	int get_fatal();

protected:
	char *str;
};

class FatalException : public Exception {
public:
	FatalException(const char *msg);
	FatalException(const char *owner, const char *msg);

//	char *get_error();
	int get_fatal();
};
class NonFatalException : public Exception {
public:
	NonFatalException(const char *msg);
	NonFatalException(const char *owner, const char *msg);

//	char *get_error();
	int get_fatal(); 
};

class ValueNotSpecifiedException : public FatalException {
public:
	ValueNotSpecifiedException(const char *msg);
	ValueNotSpecifiedException(const char *owner, const char *msg);
};

class FileNotFoundException : public NonFatalException {
public:
	FileNotFoundException(const char *msg);
	FileNotFoundException(const char *owner, const char *msg);
};