00001
00002
00004
00005 #if !defined(AFX_NULLPOINTEREXCEPTION_H__D8CF7767_F5D5_4E8E_BD23_A9190145AC95__INCLUDED_)
00006 #define AFX_NULLPOINTEREXCEPTION_H__D8CF7767_F5D5_4E8E_BD23_A9190145AC95__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "Exception.h"
00013
00015
00016 class NullPointerException : public Exception
00017 {
00018 public:
00019
00020
00021 NullPointerException() throw();
00022
00023 NullPointerException(std::string sElementName) throw();
00024
00025 NullPointerException(std::string sElementName,std::string sOrigin,std::string sFileName,unsigned int iLineNumber) throw();
00026
00027 virtual ~NullPointerException() throw();
00028
00029
00030 virtual std::string makeDescription();
00031
00032 virtual std::string makeReason();
00033
00034 virtual std::string makeOrigin(std::string sOrigin);
00035
00036 private:
00037
00038 std::string _sElementName;
00039 };
00040
00041 #endif // !defined(AFX_NULLPOINTEREXCEPTION_H__D8CF7767_F5D5_4E8E_BD23_A9190145AC95__INCLUDED_)