Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SmartSockets::Exception Class Reference

#include <tex.h>

Inheritance diagram for SmartSockets::Exception::

SmartSockets::CallBackException SmartSockets::ExceptionNames SmartSockets::OptionException SmartSockets::SystemException SmartSockets::TipcException SmartSockets::UtilitiesException SmartSockets::XMLException SmartSockets::TipcConnException SmartSockets::TipcDispatcherException SmartSockets::TipcEventException SmartSockets::TipcMonException SmartSockets::TipcMonExtException SmartSockets::TipcMsgException SmartSockets::TipcMsgFileException SmartSockets::TipcMtException SmartSockets::TipcSrvCacheException SmartSockets::TipcSrvException List of all members.

Public Methods

 Exception ()
 Exception (int4 errNum)
virtual ~Exception () throw ()
virtual const char * what () const throw ()
int4 getErrNum () const
int4 getOSErrNum () const
int4 getSocketErrNum () const
int4 getCErrNum () const

Detailed Description

Base Class for all exception classes. All TIBCO SmartSockets C++ exceptions will be derived from this base class.


Constructor & Destructor Documentation

SmartSockets::Exception::Exception  
 

This constructor will be used to create an exception using TutErrNumGet(), TutErrNumGetOs(), TutErrNumGetSocket(), TutErrNumGetC to populate the error numbers and set the error string based on the error number.

SmartSockets::Exception::Exception int4    errNum
 

This constructor will be used to create an exception using the arguments to populate the error numbers. This is used for any exceptions created specifically for C++ that don't have a C equivalent SmartSockets error number. Note that the ExceptionNames class should be used to associate any new C++ specific error codes with its string. The string returned by the what() method will be obtained that way.

Parameters:
errNum  the SmartSockets error code
See also:
ExceptionNames , what()

virtual SmartSockets::Exception::~Exception   throw () [virtual]
 

Destructor


Member Function Documentation

int4 SmartSockets::Exception::getCErrNum   const
 

Gets the C code set when the exception was thrown.

int4 SmartSockets::Exception::getErrNum   const
 

Gets the SmartSockets error code set when the exception was thrown.

int4 SmartSockets::Exception::getOSErrNum   const
 

Gets the Operating System error code set when the exception was thrown.

int4 SmartSockets::Exception::getSocketErrNum   const
 

Gets the Socket error code set when the exception was thrown.

virtual const char* SmartSockets::Exception::what   const throw () [virtual]
 

Gets an error string based on what the SmartSockets error code was set to. To create new error codes, please use the ExceptionNames class.

Returns:
The string associated with the exception.
See also:
ExceptionNames


The documentation for this class was generated from the following file:
Generated on Fri Jul 14 15:05:55 2006 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001