00001 // NotAllowedOperationException.h: interface for the NotAllowedOperationException class. 00002 // 00004 00005 #if !defined(AFX_NOTALLOWEDOPERATIONEXCEPTION_H__3027BCAD_8BE8_4C3F_9C5C_C9F35F09B4D7__INCLUDED_) 00006 #define AFX_NOTALLOWEDOPERATIONEXCEPTION_H__3027BCAD_8BE8_4C3F_9C5C_C9F35F09B4D7__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 #include "OperationException.h" 00013 00015 class NotAllowedOperationException : public OperationException 00016 { 00017 public: 00018 NotAllowedOperationException() throw(); 00019 virtual ~NotAllowedOperationException() throw(); 00020 00021 NotAllowedOperationException(std::string sOperationNotAllowed,std::string sReason,std::string sOrigin,std::string sFileName,unsigned int iLineNumber); 00022 00023 virtual std::string makeDescription(); 00024 virtual std::string makeReason(); 00025 virtual std::string makeOrigin(std::string sOrigin); 00026 00027 private: 00028 std::string _sOperationNotAllowed; 00029 std::string _sReason; 00030 }; 00031 00032 #endif // !defined(AFX_NOTALLOWEDOPERATIONEXCEPTION_H__3027BCAD_8BE8_4C3F_9C5C_C9F35F09B4D7__INCLUDED_)
1.4.5