Simulateur Ferroviaire
Reconstruction et visualisation d'un réseau ferroviaire à partir de données GeoJSON — Win32 / WebView2 / Leaflet
Chargement...
Recherche...
Aucune correspondance
GeoParserException.h
Aller à la documentation de ce fichier.
1#pragma once
2
26#include <stdexcept>
27#include <string>
28
29
30// =============================================================================
31// Classe de base
32// =============================================================================
33
40class RailwayParserException : public std::runtime_error
41{
42public:
47 explicit RailwayParserException(const std::string& errorMessage)
48 : std::runtime_error(errorMessage)
49 {}
50};
51
52
53// =============================================================================
54// Sous-classes spécialisées
55// =============================================================================
56
67{
68public:
69 explicit InvalidGeoJsonFormatException(const std::string& errorMessage)
70 : RailwayParserException(errorMessage)
71 {}
72};
73
74
83{
84public:
85 explicit InvalidTopologyException(const std::string& errorMessage)
86 : RailwayParserException(errorMessage)
87 {}
88};
89
90
100{
101public:
102 explicit InvalidSwitchConfigException(const std::string& errorMessage)
103 : RailwayParserException(errorMessage)
104 {}
105};
Levée quand le fichier GeoJSON est malformé ou ne contient aucune géométrie LineString exploitable.
Definition GeoParserException.h:67
InvalidGeoJsonFormatException(const std::string &errorMessage)
Definition GeoParserException.h:69
Levée quand un aiguillage viole une contrainte géométrique du CDC.
Definition GeoParserException.h:100
InvalidSwitchConfigException(const std::string &errorMessage)
Definition GeoParserException.h:102
Levée quand la topologie du graphe parsé est structurellement incohérente.
Definition GeoParserException.h:83
InvalidTopologyException(const std::string &errorMessage)
Definition GeoParserException.h:85
Classe de base pour toutes les erreurs du parseur ferroviaire.
Definition GeoParserException.h:41
RailwayParserException(const std::string &errorMessage)
Construit une exception avec le message fourni.
Definition GeoParserException.h:47