CSL  5.2
SocketException Class Reference

#include <PracticalSocket.h>

List of all members.

Public Member Functions

 SocketException (const string &message, bool inclSysMsg=false) throw ()
 ~SocketException () throw ()
const char * what () const throw ()

Private Attributes

string userMessage

Detailed Description

Definition at line 28 of file PracticalSocket.h.


Constructor & Destructor Documentation

SocketException::SocketException ( const string &  message,
bool  inclSysMsg = false 
) throw ()

Construct a SocketException with a explanatory message.

Parameters:
messageexplanatory message
incSysMsgtrue if system message (from strerror(errno)) should be postfixed to the user provided message

Definition at line 48 of file PracticalSocket.cpp.

SocketException::~SocketException ( ) throw ()

Provided just to guarantee that no exceptions are thrown.

Definition at line 56 of file PracticalSocket.cpp.


Member Function Documentation

const char * SocketException::what ( ) const throw ()

Get the exception message

Returns:
exception message

Definition at line 59 of file PracticalSocket.cpp.


Member Data Documentation

string SocketException::userMessage
private

Definition at line 50 of file PracticalSocket.h.


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