Thrown when a referenced train does not exist.
More...
#include <CustomExceptions.hpp>
|
| | 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.
|
| const char * | what () const noexcept override |
| | Provides the error message stored in this exception.
|
|
| | CustomException (std::string_view const message) |
| | Constructs the exception with a custom error message.
|
Thrown when a referenced train does not exist.
◆ 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: