00001 //-------------------------------------------------- 00013 //--------------------------------------------------- 00014 00015 #ifndef IMEDGINENULL_POINTER_EXCEPTION_H 00016 #define IMEDGINENULL_POINTER_EXCEPTION_H 00017 00018 #include "exception.h" 00019 00020 namespace imedgine 00021 { 00022 00023 //-------------------------------------------------- 00034 //-------------------------------------------------- 00035 00036 class NullPointerException : public Exception 00037 { 00038 public: 00039 00040 //-------------------------------------------------- 00045 NullPointerException(std::string method = "", std::string pointer_name = 0); 00046 00047 //-------------------------------------------------- 00050 00051 NullPointerException(NullPointerException const& src); 00052 00053 //-------------------------------------------------- 00056 00057 virtual ~NullPointerException() throw(); 00058 00059 //-------------------------------------------------- 00064 00065 virtual char const* what() const throw(); 00066 00067 private: 00068 00069 NullPointerException& operator = (NullPointerException const&) 00070 { return(*this); } 00071 }; 00072 } 00073 00074 #endif