| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef ERROR_H |
| #define ERROR_H |
| |
| #include "xstring.h" |
| |
| class Error |
| { |
| xstring text; |
| int code; |
| bool fatal; |
| public: |
| Error(); |
| Error(int,const char *,bool); |
| ~Error(); |
| void Set(int,const char *,bool); |
| |
| const char *Text() const { return text; } |
| int Code() const { return code; } |
| bool IsFatal() const { return fatal; } |
| |
| static Error *Fatal(const char *s,int c=-1); |
| }; |
| |
| #endif |