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

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

#include <CustomExceptions.hpp>

Inheritance diagram for cda_rail::exceptions::TrainNotExistentException:
cda_rail::exceptions::CustomException

Public Member Functions

 TrainNotExistentException ()
 Constructs with a generic train-not-found message.
 TrainNotExistentException (std::string_view const trainName)
 Creates an exception for a missing train identified by name.
 TrainNotExistentException (size_t const trainId)
 Creates an exception for a train not found 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 train does not exist.

Constructor & Destructor Documentation

◆ TrainNotExistentException() [1/3]

cda_rail::exceptions::TrainNotExistentException::TrainNotExistentException ( )
inline

Constructs with a generic train-not-found message.

◆ TrainNotExistentException() [2/3]

cda_rail::exceptions::TrainNotExistentException::TrainNotExistentException ( std::string_view const trainName)
inlineexplicit

Creates an exception for a missing train identified by name.

◆ TrainNotExistentException() [3/3]

cda_rail::exceptions::TrainNotExistentException::TrainNotExistentException ( size_t const trainId)
inlineexplicit

Creates an exception for a train not found by ID.


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