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

Public Member Functions | |
| Error (const Tag *tag=0) | |
| Error (StanzaErrorType type, StanzaError error, Tag *appError=0) | |
| virtual | ~Error () |
| StanzaErrorType | type () const |
| StanzaError | error () const |
| const Tag * | appError () const |
| const std::string & | text (const std::string &lang="default") const |
| virtual const std::string & | filterString () const |
| virtual StanzaExtension * | newInstance (const Tag *tag) const |
| virtual Tag * | tag () const |
Jakob Schroeter <js@camaya.net>
Definition at line 34 of file error.h.
|
|
Creates a new Error object from the given Tag.
|
|
||||||||||||||||
|
Creates a new Error object.
|
|
|
Virtual destructor. |
|
|
This function can be used to retrieve the application-specific error condition of a stanza error.
|
|
|
Return the stanza error.
|
|
|
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension. |
|
|
Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like: StanzaExtension* FooExtension::newInstance( const Tag* tag ) const { return new FooExtension( tag ); }
Implements StanzaExtension. |
|
|
Returns a Tag representation of the extension.
Implements StanzaExtension. |
|
|
Returns the text of a error stanza for the given language if available. If the requested language is not available, the default text (without a xml:lang attribute) will be returned.
|
|
|
Returns the error type.
|
1.4.1