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

Base class for project-specific exceptions. More...

#include <CustomExceptions.hpp>

Inheritance diagram for cda_rail::exceptions::CustomException:
cda_rail::exceptions::ConsistencyException cda_rail::exceptions::EdgeNotExistentException cda_rail::exceptions::ExportException cda_rail::exceptions::ImportException cda_rail::exceptions::InvalidInputException cda_rail::exceptions::ModelCreationException cda_rail::exceptions::ScheduleNotExistentException cda_rail::exceptions::StationNotExistentException cda_rail::exceptions::TrainNotExistentException cda_rail::exceptions::VertexNotExistentException

Public Member Functions

const char * what () const noexcept override
 Provides the error message stored in this exception.

Protected Member Functions

 CustomException (std::string_view const message)
 Constructs the exception with a custom error message.

Detailed Description

Base class for project-specific exceptions.

Stores a human-readable error message and exposes it through what().

Constructor & Destructor Documentation

◆ CustomException()

cda_rail::exceptions::CustomException::CustomException ( std::string_view const message)
inlineexplicitprotected

Constructs the exception with a custom error message.

Parameters
messageMessage returned by what().

Member Function Documentation

◆ what()

const char * cda_rail::exceptions::CustomException::what ( ) const
inlinenodiscardoverridenoexcept

Provides the error message stored in this exception.

Returns
Null-terminated C string containing the error message.

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