XMPP errors. More...
#include <xmpputils.h>
Public Types | |
| enum | Type { NoError = 0, BadFormat, BadNamespace, ConnTimeout, HostGone, HostUnknown, BadAddressing, Internal, InvalidFrom, InvalidId, InvalidNamespace, InvalidXml, NotAuth, Policy, RemoteConn, ResConstraint, RestrictedXml, SeeOther, Shutdown, UndefinedCondition, UnsupportedEnc, UnsupportedStanza, UnsupportedVersion, Xml, Aborted, IncorrectEnc, InvalidAuth, InvalidMechanism, MechanismTooWeak, NotAuthorized, TempAuthFailure, SBadRequest, SConflict, SFeatureNotImpl, SForbidden, SGone, SInternal, SItemNotFound, SBadJid, SNotAcceptable, SNotAllowed, SPayment, SUnavailable, SRedirect, SReg, SNoRemote, SRemoteTimeout, SResource, SServiceUnavailable, SSubscription, SUndefinedCondition, SRequest, DtmfNoMethod, ItemNotFound, Count } |
| enum | ErrorType { TypeCancel = 1000, TypeContinue, TypeModify, TypeAuth, TypeWait, TypeCount } |
Public Member Functions | |
| const char * | operator[] (int index) |
Static Public Member Functions | |
| static bool | isText (int index, const char *txt) |
| static int | type (const char *txt) |
XMPP errors.
This class holds the XMPP error type, error enumerations and associated strings
| enum ErrorType |
Error type enumeration
| enum Type |
Error condition enumeration
| static bool isText | ( | int | index, | |
| const char * | txt | |||
| ) | [static] |
Check if a given text is a valid error
| const char* operator[] | ( | int | index | ) | [inline] |
Get the text representation of a given error value
References TelEngine::lookup().
| static int type | ( | const char * | txt | ) | [inline, static] |
Get the type associated with a given error text
References TelEngine::lookup().
1.6.3