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

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

#include <CustomExceptions.hpp>

Inheritance diagram for cda_rail::exceptions::VertexNotExistentException:
cda_rail::exceptions::CustomException

Public Member Functions

 VertexNotExistentException ()
 Creates an exception indicating a vertex does not exist.
 VertexNotExistentException (std::string_view const vertexName)
 Exception indicating a vertex with the specified name does not exist.
 VertexNotExistentException (size_t const vertexId)
 Constructs for a missing vertex 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 vertex does not exist.

Constructor & Destructor Documentation

◆ VertexNotExistentException() [1/3]

cda_rail::exceptions::VertexNotExistentException::VertexNotExistentException ( )
inline

Creates an exception indicating a vertex does not exist.

◆ VertexNotExistentException() [2/3]

cda_rail::exceptions::VertexNotExistentException::VertexNotExistentException ( std::string_view const vertexName)
inlineexplicit

Exception indicating a vertex with the specified name does not exist.

◆ VertexNotExistentException() [3/3]

cda_rail::exceptions::VertexNotExistentException::VertexNotExistentException ( size_t const vertexId)
inlineexplicit

Constructs for a missing vertex identified by ID.

Parameters
vertexIdVertex ID that was not found.

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