B2BITS FIX Antenna C++  2.27.0
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 throw ()
 Return the system-depended error code. More...
 
 SystemException ()
 Default constructor. More...
 
 SystemException (char const *msg, int errNo)
 Constructs SystemException with the given errno and detailed description. More...
 
 SystemException (std::string const &msg, int errNo)
 Constructs SystemException with the given errno and detailed description. More...
 
 SystemException (std::string const &msg)
 Constructs SystemException. More...
 
 SystemException (char const *msg)
 Constructs SystemException. 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 throw ()
 Returns the reason for this exception. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 

Static Public Member Functions

static std::string createErrorMessage (char const *msg, int errNo)
 Craete error message using given description and system error code. More...
 
static std::string getErrorDescription (int errNo)
 Returns description for error code. More...
 
static int getLastError () throw ()
 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

◆ SystemException() [1/5]

System::SystemException::SystemException ( )

Default constructor.

◆ SystemException() [2/5]

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

Constructs SystemException with the given errno and detailed description.

◆ SystemException() [3/5]

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

Constructs SystemException with the given errno and detailed description.

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

◆ SystemException() [4/5]

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

Constructs SystemException.

◆ SystemException() [5/5]

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

Constructs SystemException.

Member Function Documentation

◆ createErrorMessage()

static std::string System::SystemException::createErrorMessage ( char const *  msg,
int  errNo 
)
static

Craete error message using given description and system error code.

◆ getErrNo()

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

Return the system-depended error code.

◆ getErrorDescription()

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

Returns description for error code.

◆ getLastError()

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

Returns error code of the last operation.