bitz-server  0.1.6
Public Member Functions | List of all members
socketlibrary::SocketException Class Reference

#include <socket.h>

Inheritance diagram for socketlibrary::SocketException:

Public Member Functions

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

Detailed Description

Signals a problem with the execution of a socket call.

Constructor & Destructor Documentation

socketlibrary::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
socketlibrary::SocketException::~SocketException ( )
throw (
)

Provided just to guarantee that no exceptions are thrown.

Member Function Documentation

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

Get the exception message

Returns
exception message