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

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

#include <CustomExceptions.hpp>

Inheritance diagram for cda_rail::exceptions::EdgeNotExistentException:
cda_rail::exceptions::CustomException

Public Member Functions

 EdgeNotExistentException ()
 Constructs with a generic edge-not-found message.
 EdgeNotExistentException (std::string_view const edgeName)
 Raised when an edge with the specified name does not exist.
 EdgeNotExistentException (size_t const edgeId)
 Creates an exception for an edge that does not exist, identified by its ID.
 EdgeNotExistentException (size_t const source, size_t const target)
 Exception for a missing edge between two vertices.
 EdgeNotExistentException (const std::string_view source, const std::string_view target)
 Creates an exception for a missing edge between two named vertices.
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 edge does not exist.

Constructor & Destructor Documentation

◆ EdgeNotExistentException() [1/5]

cda_rail::exceptions::EdgeNotExistentException::EdgeNotExistentException ( )
inline

Constructs with a generic edge-not-found message.

◆ EdgeNotExistentException() [2/5]

cda_rail::exceptions::EdgeNotExistentException::EdgeNotExistentException ( std::string_view const edgeName)
inlineexplicit

Raised when an edge with the specified name does not exist.

Parameters
edgeNameThe name of the edge that was not found.

◆ EdgeNotExistentException() [3/5]

cda_rail::exceptions::EdgeNotExistentException::EdgeNotExistentException ( size_t const edgeId)
inlineexplicit

Creates an exception for an edge that does not exist, identified by its ID.

◆ EdgeNotExistentException() [4/5]

cda_rail::exceptions::EdgeNotExistentException::EdgeNotExistentException ( size_t const source,
size_t const target )
inlineexplicit

Exception for a missing edge between two vertices.

Parameters
sourceSource vertex ID.
targetTarget vertex ID.

◆ EdgeNotExistentException() [5/5]

cda_rail::exceptions::EdgeNotExistentException::EdgeNotExistentException ( const std::string_view source,
const std::string_view target )
inlineexplicit

Creates an exception for a missing edge between two named vertices.


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