B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | List of all members
System::SystemException Class Reference

System exception. More...

#include <B2BITS_SystemException.h>

+ Inheritance diagram for System::SystemException:
+ Collaboration diagram for System::SystemException:

Public Member Functions

int getErrNo () const
 Return the system-depended error code. More...
 
 SystemException (char const *msg, int errNo=SystemException::getLastError())
 Constructs the system std::exception with the given errno. More...
 
 SystemException (std::string const &msg, int errNo)
 Constructs the system std::exception with the given errno. More...
 
- Public Member Functions inherited from Utils::Exception
 Exception ()
 Constructor. More...
 
 Exception (const std::string &aReason)
 Constructor. More...
 
std::string const & reason () const throw ()
 Returns the reason for this exception. More...
 
virtual const char * what () const B2B_OVERRIDE throw ()
 Returns the reason for this exception. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 

Static Public Member Functions

static std::string getErrorDescription (int errNo)
 Returns description for error code. More...
 
static int getLastError ()
 Returns error code of the last operation. More...
 

Additional Inherited Members

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

Detailed Description

System exception.

Constructor & Destructor Documentation

System::SystemException::SystemException ( char const *  msg,
int  errNo = SystemException::getLastError() 
)

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

System::SystemException::SystemException ( 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

int System::SystemException::getErrNo ( ) const
inline

Return the system-depended error code.

static std::string System::SystemException::getErrorDescription ( int  errNo)
static

Returns description for error code.

static int System::SystemException::getLastError ( )
static

Returns error code of the last operation.