Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::SocketError Class Reference
[Network]

Execption caused by socket error return codes.

#include <OSGSocketException.h>

Inheritance diagram for osg::SocketError:

osg::SocketException osg::Exception osg::SocketConnReset osg::SocketInUse List of all members.

Public Member Functions

Info
*virtual const Char8what (void) const OSG_THROW_NOTHING()
Constructors
SocketError (const char *function)
Info
*virtual const Char8what (void) const OSG_THROW_NOTHING()

Protected Types

typedef OSG_STDEXCEPTION_NAMESPACE::exception Inherited

Protected Attributes

Class Specific
*std::string _what
Class Specific
*std::string _what

Detailed Description

Definition at line 70 of file OSGSocketException.h.


Member Typedef Documentation

typedef OSG_STDEXCEPTION_NAMESPACE::exception osg::Exception::Inherited [protected, inherited]
 

Definition at line 101 of file OSGException.h.


Constructor & Destructor Documentation

SocketError::SocketError const char *  function  ) 
 

Constructor

Definition at line 69 of file OSGSocketException.cpp.

References osg::Exception::_what, osg::Socket::getError(), and osg::Socket::getErrorStr().

00069                                             :SocketException()
00070 {
00071     char estr[6];
00072     
00073     sprintf(estr,"%5d",Socket::getError());
00074     _what=_what + function + " " + estr + " " + Socket::getErrorStr();
00075 }


Member Function Documentation

const Char8 * Exception::what void   )  const [virtual, inherited]
 

Definition at line 73 of file OSGException.cpp.

References osg::Exception::_what.

Referenced by osg::operator<<().

00074 {
00075     return _what.c_str();
00076 }


Member Data Documentation

* std::string osg::Exception::_what [protected, inherited]
 

Definition at line 107 of file OSGException.h.

Referenced by osg::ClusterException::ClusterException(), osg::ConnectionClosed::ConnectionClosed(), osg::Exception::operator=(), osg::BinaryDataHandler::ReadError::ReadError(), osg::RemoteSyncError::RemoteSyncError(), SocketError(), osg::SocketException::SocketException(), osg::SocketHostError::SocketHostError(), osg::Exception::what(), and osg::BinaryDataHandler::WriteError::WriteError().


The documentation for this class was generated from the following files:
Generated on Thu Aug 25 04:12:57 2005 for OpenSG by  doxygen 1.4.3