MTCT
Design Automation and Optimization for ETCS Railway Networks
Loading...
Searching...
No Matches
cda_rail::exceptions::ScheduleNotExistentException Class Reference

Thrown when a referenced schedule does not exist. More...

#include <CustomExceptions.hpp>

Inheritance diagram for cda_rail::exceptions::ScheduleNotExistentException:
cda_rail::exceptions::CustomException

Public Member Functions

 ScheduleNotExistentException ()
 Constructs the exception with a default message indicating a schedule does not exist.
 ScheduleNotExistentException (std::string_view const scheduleName)
 Constructs an exception for a schedule that does not exist.
 ScheduleNotExistentException (size_t const scheduleId)
 Constructs an exception for a missing schedule identified by ID.
Public Member Functions inherited from cda_rail::exceptions::CustomException
const char * what () const noexcept override
 Provides the error message stored in this exception.

Additional Inherited Members

Protected Member Functions inherited from cda_rail::exceptions::CustomException
 CustomException (std::string_view const message)
 Constructs the exception with a custom error message.

Detailed Description

Thrown when a referenced schedule does not exist.

Constructor & Destructor Documentation

◆ ScheduleNotExistentException() [1/3]

cda_rail::exceptions::ScheduleNotExistentException::ScheduleNotExistentException ( )
inline

Constructs the exception with a default message indicating a schedule does not exist.

◆ ScheduleNotExistentException() [2/3]

cda_rail::exceptions::ScheduleNotExistentException::ScheduleNotExistentException ( std::string_view const scheduleName)
inlineexplicit

Constructs an exception for a schedule that does not exist.

Parameters
scheduleNameName of the schedule that was not found.

◆ ScheduleNotExistentException() [3/3]

cda_rail::exceptions::ScheduleNotExistentException::ScheduleNotExistentException ( size_t const scheduleId)
inlineexplicit

Constructs an exception for a missing schedule identified by ID.

Parameters
scheduleIdThe ID of the schedule.

The documentation for this class was generated from the following file: