#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, 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) |
This class holds the XMPP error type, error enumerations and associated strings
enum Type |
Error condition enumeration
enum ErrorType |
Error type enumeration
const char* operator[] | ( | int | index | ) | [inline] |
Get the text representation of a given error value
References TelEngine::lookup().
static bool isText | ( | int | index, | |
const char * | txt | |||
) | [static] |
Check if a given text is a valid error
static int type | ( | const char * | txt | ) | [inline, static] |
Get the type associated with a given error text
References TelEngine::lookup().