B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
System::SocketException Class Reference

Socket exception. More...

#include <B2BITS_SystemException.h>

+ Inheritance diagram for System::SocketException:
+ Collaboration diagram for System::SocketException:

Public Member Functions

 SocketException (char const *msg)
 Constructs the system std::exception with the given message.
 
 SocketException (char const *msg, int errNo)
 Constructs the system std::exception with the given errno.
 
 SocketException (std::string const &msg)
 Constructs the system std::exception with the given message.
 
 SocketException (std::string const &msg, int errNo)
 Constructs the system std::exception with the given errno.
 
- Public Member Functions inherited from System::SystemException
int getErrNo () const throw ()
 Return the system-depended error code.
 
 SystemException ()
 Default constructor.
 
 SystemException (char const *msg)
 Constructs SystemException.
 
 SystemException (char const *msg, int errNo)
 Constructs SystemException with the given errno and detailed description.
 
 SystemException (std::string const &msg)
 Constructs SystemException.
 
 SystemException (std::string const &msg, int errNo)
 Constructs SystemException with the given errno and detailed description.
 
- Public Member Functions inherited from Utils::Exception
 Exception ()
 Constructor.
 
 Exception (const std::string &aReason)
 Constructor.
 
std::string const & reason () const throw ()
 Returns the reason for this exception.
 
virtual const char * what () const throw ()
 Returns the reason for this exception.
 
virtual ~Exception () throw ()
 Destructor.
 

Static Public Member Functions

static int getLastError ()
 Returns error code of the last operation related to socket subsystem.
 
- Static Public Member Functions inherited from System::SystemException
static std::string createErrorMessage (char const *msg, int errNo)
 Craete error message using given description and system error code.
 
static std::string getErrorDescription (int errNo)
 Returns description for error code.
 
static int getLastError () throw ()
 Returns error code of the last operation.
 

Additional Inherited Members

- Protected Attributes inherited from Utils::Exception
std::string m_reason
 std::string that describes raised exception
 

Detailed Description

Socket exception.

Constructor & Destructor Documentation

◆ SocketException() [1/4]

System::SocketException::SocketException ( char const * msg)
explicit

Constructs the system std::exception with the given message.

◆ SocketException() [2/4]

System::SocketException::SocketException ( std::string const & msg)
explicit

Constructs the system std::exception with the given message.

◆ SocketException() [3/4]

System::SocketException::SocketException ( char const * msg,
int errNo )

Constructs the system std::exception with the given errno.

◆ SocketException() [4/4]

System::SocketException::SocketException ( std::string const & msg,
int errNo )

Constructs the system std::exception with the given errno.

warning Please be careful. std::string can change last error code.

Member Function Documentation

◆ getLastError()

static int System::SocketException::getLastError ( )
static

Returns error code of the last operation related to socket subsystem.