Public Types | Public Member Functions

Swift::StreamError Class Reference

Inheritance diagram for Swift::StreamError:
Collaboration diagram for Swift::StreamError:

List of all members.

Public Types

enum  Type {
  BadFormat, BadNamespacePrefix, Conflict, ConnectionTimeout,
  HostGone, HostUnknown, ImproperAddressing, InternalServerError,
  InvalidFrom, InvalidID, InvalidNamespace, InvalidXML,
  NotAuthorized, NotWellFormed, PolicyViolation, RemoteConnectionFailed,
  Reset, ResourceConstraint, RestrictedXML, SeeOtherHost,
  SystemShutdown, UndefinedCondition, UnsupportedEncoding, UnsupportedStanzaType,
  UnsupportedVersion
}
typedef boost::shared_ptr
< StreamError
ref

Public Member Functions

 StreamError (Type type=UndefinedCondition, const std::string &text=std::string())
Type getType () const
void setType (Type type)
void setText (const std::string &text)
const std::string & getText () const

Detailed Description

Definition at line 15 of file StreamError.h.


Member Typedef Documentation

typedef boost::shared_ptr<StreamError> Swift::StreamError::ref

Definition at line 17 of file StreamError.h.


Member Enumeration Documentation

Enumerator:
BadFormat 
BadNamespacePrefix 
Conflict 
ConnectionTimeout 
HostGone 
HostUnknown 
ImproperAddressing 
InternalServerError 
InvalidFrom 
InvalidID 
InvalidNamespace 
InvalidXML 
NotAuthorized 
NotWellFormed 
PolicyViolation 
RemoteConnectionFailed 
Reset 
ResourceConstraint 
RestrictedXML 
SeeOtherHost 
SystemShutdown 
UndefinedCondition 
UnsupportedEncoding 
UnsupportedStanzaType 
UnsupportedVersion 

Definition at line 19 of file StreamError.h.


Constructor & Destructor Documentation

Swift::StreamError::StreamError ( Type  type = UndefinedCondition,
const std::string &  text = std::string() 
) [inline]

Definition at line 47 of file StreamError.h.


Member Function Documentation

const std::string& Swift::StreamError::getText (  )  const [inline]

Definition at line 61 of file StreamError.h.

Type Swift::StreamError::getType (  )  const [inline]

Definition at line 49 of file StreamError.h.

void Swift::StreamError::setText ( const std::string &  text  )  [inline]

Definition at line 57 of file StreamError.h.

void Swift::StreamError::setType ( Type  type  )  [inline]

Definition at line 53 of file StreamError.h.