00001 #pragma once
00002
00003 class CException
00004 {
00005 private:
00006 const char* message;
00007 const char* file;
00008 int line;
00009
00010 protected:
00011 string text;
00012
00013 public:
00014 CException(const char* message, const char* file, int line);
00015 virtual ~CException() { }
00016
00017 inline const char* Message() { return this->message; }
00018 inline const char* File() { return this->file; }
00019 inline int Line() { return this->line; }
00020
00021 inline string& Text() { return this->text; }
00022 };