NeTrainSim
0.1.1 beta
The Open-Source Network Trains Simulator
Loading...
Searching...
No Matches
error.h
Go to the documentation of this file.
1
6
#ifndef ERROR_H
7
#define ERROR_H
8
12
enum class
Error
{
13
// base starts with 0
14
cannotRetrieveHomeDir
= 010,
15
16
// nodes start with 1
17
nodesFileDoesNotExist
= 100,
18
emptyNodesFile
= 110,
19
wrongNodesFileStructure
= 120,
20
// links start with 1
21
linksFileDoesNotExist
= 130,
22
emptyLinksFile
= 140,
23
wrongLinksFileStructure
= 150,
24
wrongLinksLength
= 160,
25
// network processing start with 1
26
cannotFindNode
= 170,
27
28
29
// trains start with 2
30
trainsFileDoesNotExist
= 200,
31
emptyTrainsFile
= 210,
32
wrongTrainsFileStructure
= 220,
33
otherTrainsFileErrors
= 230,
34
trainPathCannotBeNull
= 240,
35
// trains processing starts with
36
trainDoesNotHaveLocos
= 250,
37
trainHasWrongLocos
= 260,
38
trainHasWrongCars
= 270,
39
trainInvalidGradesCurvature
= 280,
40
trainsFileEmpty
= 290,
41
42
trainWrongCarType
= 300,
43
trainWrongLocoType
= 310,
44
45
// output start with 4
46
cannotOpenTrajectoryFile
= 410,
47
cannotOpenSummaryFile
= 420,
48
49
50
CouldNotOpenFile
= 500
51
52
53
54
55
56
57
};
58
59
#endif
//ERROR_H
Error
Error
Enumerates the possible error values.
Definition
error.h:12
Error::nodesFileDoesNotExist
@ nodesFileDoesNotExist
Error::trainHasWrongLocos
@ trainHasWrongLocos
Error::cannotOpenSummaryFile
@ cannotOpenSummaryFile
Error::linksFileDoesNotExist
@ linksFileDoesNotExist
Error::wrongNodesFileStructure
@ wrongNodesFileStructure
Error::trainWrongLocoType
@ trainWrongLocoType
Error::trainDoesNotHaveLocos
@ trainDoesNotHaveLocos
Error::otherTrainsFileErrors
@ otherTrainsFileErrors
Error::trainPathCannotBeNull
@ trainPathCannotBeNull
Error::wrongTrainsFileStructure
@ wrongTrainsFileStructure
Error::CouldNotOpenFile
@ CouldNotOpenFile
Error::trainWrongCarType
@ trainWrongCarType
Error::trainInvalidGradesCurvature
@ trainInvalidGradesCurvature
Error::cannotRetrieveHomeDir
@ cannotRetrieveHomeDir
Error::emptyNodesFile
@ emptyNodesFile
Error::wrongLinksLength
@ wrongLinksLength
Error::cannotOpenTrajectoryFile
@ cannotOpenTrajectoryFile
Error::trainsFileDoesNotExist
@ trainsFileDoesNotExist
Error::emptyTrainsFile
@ emptyTrainsFile
Error::emptyLinksFile
@ emptyLinksFile
Error::trainsFileEmpty
@ trainsFileEmpty
Error::cannotFindNode
@ cannotFindNode
Error::wrongLinksFileStructure
@ wrongLinksFileStructure
Error::trainHasWrongCars
@ trainHasWrongCars
src
NeTrainSim
util
error.h
Generated by
1.9.7