B2BITS FIX Antenna C++  2.29.0
Public Types | Public Member Functions | List of all members
Engine::SessionsControllerException Class Reference

Sessions controller exception class. More...

#include <B2BITS_SessionsController.h>

+ Inheritance diagram for Engine::SessionsControllerException:
+ Collaboration diagram for Engine::SessionsControllerException:

Public Types

enum  ErrorCode { ErrorCode_NotFound = 1, ErrorCode_BadState, ErrorCode_BadArguments, ErrorCode_Internal }
 

Public Member Functions

int getErrorCode () const
 Returns error code. More...
 
 SessionsControllerException (int errorCode)
 
 SessionsControllerException (const std::string &aReason, int errorCode)
 
- 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...
 

Additional Inherited Members

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

Detailed Description

Sessions controller exception class.

Member Enumeration Documentation

◆ ErrorCode

Enumerator
ErrorCode_NotFound 

Session was not found.

ErrorCode_BadState 

Session is in a wrong state.

ErrorCode_BadArguments 

Bad call arguments.

ErrorCode_Internal 

Some uncertain internal error.

Constructor & Destructor Documentation

◆ SessionsControllerException() [1/2]

Engine::SessionsControllerException::SessionsControllerException ( int  errorCode)
inline

◆ SessionsControllerException() [2/2]

Engine::SessionsControllerException::SessionsControllerException ( const std::string &  aReason,
int  errorCode 
)
inline

Member Function Documentation

◆ getErrorCode()

int Engine::SessionsControllerException::getErrorCode ( ) const
inline

Returns error code.