Exception handling.
[reactos.git] / reactos / tools / rbuild / exception.h
1 #ifndef __EXCEPTION_H
2 #define __EXCEPTION_H
3
4 #include <string>
5
6 using std::string;
7
8 class Exception
9 {
10 public:
11 Exception(string message);
12 Exception(const char* format,
13 ...);
14 string Message;
15 protected:
16 Exception();
17 void SetMessage(const char* message,
18 va_list args);
19 };
20
21
22 class FileNotFoundException : public Exception
23 {
24 public:
25 FileNotFoundException(string filename);
26 string Filename;
27 };
28
29
30 class InvalidBuildFileException : public Exception
31 {
32 public:
33 InvalidBuildFileException(const char* message,
34 ...);
35 };
36
37 #endif /* __EXCEPTION_H */