B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
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.
 
 SessionsControllerException (const std::string &aReason, int errorCode)
 
 SessionsControllerException (int errorCode)
 
- 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.
 

Additional Inherited Members

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

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.