00001 #ifndef _EXCEPTION_H
00002 #define _EXCEPTION_H
00003
00004 #include <iostream>
00005 #include <string>
00006
00007 namespace annie
00008 {
00009
00017 class Exception
00018 {
00019 protected:
00020 std::string details;
00021 public:
00023
00024 Exception(const char *info);
00025
00027
00028 Exception(std::string info);
00029
00031 std::string what() const { return details; }
00032 protected:
00033 void *operator new(uint size);
00034 };
00035
00036 };
00037 #endif // define _EXCEPTION_H
00038