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

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

#include <CustomExceptions.hpp>

Inheritance diagram for cda_rail::exceptions::StationNotExistentException:
cda_rail::exceptions::CustomException

Public Member Functions

 StationNotExistentException ()
 Initializes the exception with a default message indicating no station was found.
 StationNotExistentException (std::string_view const stationName)
 Constructs an exception for a station that does not exist, identified by name.
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 station does not exist.

Constructor & Destructor Documentation

◆ StationNotExistentException() [1/2]

cda_rail::exceptions::StationNotExistentException::StationNotExistentException ( )
inline

Initializes the exception with a default message indicating no station was found.

◆ StationNotExistentException() [2/2]

cda_rail::exceptions::StationNotExistentException::StationNotExistentException ( std::string_view const stationName)
inlineexplicit

Constructs an exception for a station that does not exist, identified by name.


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