#include <NotAllowedOperationException.h>
Inherits OperationException.
Inheritance diagram for NotAllowedOperationException:


Public Member Functions | |
| NotAllowedOperationException () throw () | |
| Default constructor. | |
| virtual | ~NotAllowedOperationException () throw () |
| Destructor. | |
| NotAllowedOperationException (std::string sOperationNotAllowed, std::string sReason, std::string sOrigin, std::string sFileName, unsigned int iLineNumber) | |
This constructor requires 5 parameters :
| |
| virtual std::string | makeDescription () |
| The description message provides by the not allowed operation exception. | |
| virtual std::string | makeReason () |
| The reason message provides by the not allowed operation exception. | |
| virtual std::string | makeOrigin (std::string sOrigin) |
| The origin message provides by the not allowed operation exception. | |
Private Attributes | |
| std::string | _sOperationNotAllowed |
| std::string | _sReason |
Definition at line 15 of file NotAllowedOperationException.h.
|
|
Default constructor.
Definition at line 15 of file NotAllowedOperationException.cpp.
|
|
|
Destructor.
Definition at line 20 of file NotAllowedOperationException.cpp.
|
|
||||||||||||||||||||||||
|
This constructor requires 5 parameters :
Definition at line 31 of file NotAllowedOperationException.cpp. References makeDescription(), makeOrigin(), makeReason(), Exception::setDescription(), Exception::setFileName(), Exception::setLineNumber(), Exception::setOrigin(), Exception::setReason(), and Exception::setType(). 00031 : _sOperationNotAllowed(sOperationNotAllowed),_sReason(sReason) 00032 { 00033 setLineNumber(iLineNumber); 00034 setFileName(sFileName); 00035 setType("NotAllowedOperationException"); 00036 00037 setDescription(makeDescription()); 00038 setReason(makeReason()); 00039 setOrigin(makeOrigin(sOrigin)); 00040 }
Here is the call graph for this function: ![]() |
|
|
The description message provides by the not allowed operation exception.
Implements OperationException. Definition at line 43 of file NotAllowedOperationException.cpp. References _sOperationNotAllowed, and _sReason. Referenced by NotAllowedOperationException(). 00044 { 00045 std::string sExceptionMessage = "The operation "; 00046 sExceptionMessage+= _sOperationNotAllowed; 00047 sExceptionMessage+= " is not allowed and the reason is "; 00048 sExceptionMessage+= _sReason; 00049 00050 return sExceptionMessage; 00051 }
|
|
|
The origin message provides by the not allowed operation exception.
Implements OperationException. Definition at line 64 of file NotAllowedOperationException.cpp. References Exception::getFileName(), Exception::getLineNumber(), and ltos(). Referenced by NotAllowedOperationException(). 00065 { 00066 std::string sOriginMessage = getFileName(); 00067 sOriginMessage+= " (l:"; 00068 sOriginMessage+= ltos(getLineNumber()); 00069 sOriginMessage+= ") "; 00070 sOriginMessage+= sOrigin; 00071 00072 return sOriginMessage; 00073 }
Here is the call graph for this function: ![]() |
|
|
The reason message provides by the not allowed operation exception.
Implements OperationException. Definition at line 54 of file NotAllowedOperationException.cpp. References Exception::getType(). Referenced by NotAllowedOperationException(). 00055 { 00056 std::string sReasonMessage = "OPERATION_NOT_ALLOWED --> "; 00057 sReasonMessage+= getType(); 00058 00059 return sReasonMessage; 00060 }
Here is the call graph for this function: ![]() |
|
|
Definition at line 28 of file NotAllowedOperationException.h. Referenced by makeDescription(). |
|
|
Reimplemented from Exception. Definition at line 29 of file NotAllowedOperationException.h. Referenced by makeDescription(). |
1.4.5