Public Member Functions | Static Public Member Functions | List of all members
FIX::SocketException Struct Reference

Socket Error. More...

#include <Exceptions.h>

Inheritance diagram for FIX::SocketException:
Inheritance graph
[legend]
Collaboration diagram for FIX::SocketException:
Collaboration graph
[legend]

Public Member Functions

 SocketException ()
 
 SocketException (const std::string &what)
 
- Public Member Functions inherited from FIX::Exception
 Exception (const std::string &t, const std::string &d)
 
 ~Exception () throw ()
 

Static Public Member Functions

static std::string errorToWhat ()
 

Additional Inherited Members

- Public Attributes inherited from FIX::Exception
std::string type
 
std::string detail
 

Detailed Description

Socket Error.

Definition at line 262 of file Exceptions.h.

Constructor & Destructor Documentation

◆ SocketException() [1/2]

FIX::SocketException::SocketException ( )
inline

Definition at line 264 of file Exceptions.h.

270  : public SocketException

Referenced by errorToWhat(), and FIX::RejectLogon::RejectLogon().

◆ SocketException() [2/2]

FIX::SocketException::SocketException ( const std::string &  what)
inline

Definition at line 267 of file Exceptions.h.

270  : public SocketException

Member Function Documentation

◆ errorToWhat()

static std::string FIX::SocketException::errorToWhat ( )
inlinestatic

Definition at line 270 of file Exceptions.h.

270  : public SocketException
271 {
272  SocketSendFailed() {}
273  SocketSendFailed( const std::string& what )
274  : SocketException( what ) {}
275 };
276 
278 struct SocketRecvFailed : public SocketException
279 {
280  SocketRecvFailed( ssize_t size )
281  : SocketException( size == 0 ? "Connection reset by peer." : size < 0 ? errorToWhat() : "Success." ) {}
282  SocketRecvFailed( const std::string& what )
283  : SocketException( what ) {}

References SocketException(), and FIX::SocketSendFailed::SocketSendFailed().


The documentation for this struct was generated from the following file:
FIX::SocketException::errorToWhat
static std::string errorToWhat()
Definition: Exceptions.h:270
FIX::SocketException::SocketException
SocketException()
Definition: Exceptions.h:264

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001