B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
System::SchedulerException Class Reference

Scheduler exception class. More...

#include <B2BITS_SchedulerException.h>

+ Inheritance diagram for System::SchedulerException:
+ Collaboration diagram for System::SchedulerException:

Public Types

enum  ErrorCode {
  ErrorCode_BadSchedule = 1 , ErrorCode_BadScheduleId , ErrorCode_BadArguments , ErrorCode_Internal ,
  ErrorCode_BadTimeZone , ErrorCode_BadTradePeriodBegin , ErrorCode_BadTradePeriodEnd , ErrorCode_BadDaysOff
}
 

Public Member Functions

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

Scheduler exception class.

Member Enumeration Documentation

◆ ErrorCode

Enumerator
ErrorCode_BadSchedule 

Schedule passed is invalid.

ErrorCode_BadScheduleId 

Schedule ID is invalid.

ErrorCode_BadArguments 

Bad call arguments.

ErrorCode_Internal 

Some uncertain internal error.

ErrorCode_BadTimeZone 

Bad call argument - time zone.

ErrorCode_BadTradePeriodBegin 

Bad call argument - trade period begin.

ErrorCode_BadTradePeriodEnd 

Bad call argument - trade period end.

ErrorCode_BadDaysOff 

Bad call argument - days off.

Constructor & Destructor Documentation

◆ SchedulerException() [1/2]

System::SchedulerException::SchedulerException ( int errorCode)
inline

◆ SchedulerException() [2/2]

System::SchedulerException::SchedulerException ( const std::string & aReason,
int errorCode )
inline

Member Function Documentation

◆ getErrorCode()

int System::SchedulerException::getErrorCode ( ) const
inline

Returns error code.