#include <error.h>
Inheritance diagram for Error:

Public Member Functions | |
| Error (const int iErrorID=-1) | |
| Constructor. | |
| Error (const int iErrorID, const std::string &sDescription) | |
| Constructor. | |
| ~Error () | |
| Destructor. | |
| void | setErrorID (const int iErrorID) |
| Sets the error ID. | |
| int | getErrorId () const |
| Returns the error ID. | |
| void | setDescription (const std::string &sDescription) |
| Sets the error ID. | |
| std::string | getDescription () const |
| Returns the error description. | |
| virtual void | toXML (XMLWriter &writer) const |
| Writes a XML object representation. | |
| virtual void | processMessage () const |
| Processes the error. | |
| virtual std::string | toString () const |
| Returns a string representation of the answer. | |
| virtual Error & | copy () const |
| Returns a copy of this message. | |
| virtual void | toXMLExt (XMLWriter &writer) const |
| Writes a XML object representation. | |
Static Public Attributes | |
| static const char * | ROOT_NODE = "error" |
| Error root node. | |
| static const char * | ID_ATTR = "id" |
| Name of ID attribute. | |
| static const char * | DESCRIPTION_NODE = "description" |
| Name of description node. | |
| static const int | SAXERROR = 1 |
| SAX Error ID. | |
| static const int | CRYPTEDERROR = 2 |
| Crypted message not handled error id. | |
The XM representation is :
<ROOT_NODE id_attr="m_iErrorID"> <DESCRIPTION_NODE>m_sDescription</DESCRIPTION_NODE> </ROOT_NODE>
Yves Houpert <yves.houpert@insa-rouen.fr>
|
|
Constructor.
|
|
||||||||||||
|
Constructor.
|
|
|
Returns a copy of this message.
Implements BaseMessage. Reimplemented in CryptedMessageError. |
|
|
Returns the error description.
|
|
|
Returns the error ID.
|
|
|
Sets the error ID.
|
|
|
Sets the error ID.
|
|
|
Returns a string representation of the answer.
Implements BaseMessage. Reimplemented in CryptedMessageError. |
|
|
Writes a XML object representation.
Implements BaseMessage. |
|
|
Writes a XML object representation.
Reimplemented in CryptedMessageError. |
1.4.6