Yate
Public Types | Public Member Functions | Static Public Member Functions

XMPPError Class Reference

XMPP errors. More...

#include <xmpputils.h>

List of all members.

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)

Detailed Description

XMPP errors.

This class holds the XMPP error type, error enumerations and associated strings


Member Enumeration Documentation

enum ErrorType

Error type enumeration

enum Type

Error condition enumeration


Member Function Documentation

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().


The documentation for this class was generated from the following file: