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