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
12enum class Error {
13 // base starts with 0
15
16 // nodes start with 1
18 emptyNodesFile = 110,
20 // links start with 1
22 emptyLinksFile = 140,
24 wrongLinksLength = 160,
25 // network processing start with 1
26 cannotFindNode = 170,
27
28
29 // trains start with 2
31 emptyTrainsFile = 210,
35 // trains processing starts with
40 trainsFileEmpty = 290,
41
44
45 // output start with 4
48
49
51
52
53
54
55
56
57};
58
59#endif //ERROR_H
Error
Enumerates the possible error values.
Definition error.h:12
@ nodesFileDoesNotExist
@ trainHasWrongLocos
@ cannotOpenSummaryFile
@ linksFileDoesNotExist
@ wrongNodesFileStructure
@ trainWrongLocoType
@ trainDoesNotHaveLocos
@ otherTrainsFileErrors
@ trainPathCannotBeNull
@ wrongTrainsFileStructure
@ CouldNotOpenFile
@ trainWrongCarType
@ trainInvalidGradesCurvature
@ cannotRetrieveHomeDir
@ emptyNodesFile
@ wrongLinksLength
@ cannotOpenTrajectoryFile
@ trainsFileDoesNotExist
@ emptyTrainsFile
@ emptyLinksFile
@ trainsFileEmpty
@ cannotFindNode
@ wrongLinksFileStructure
@ trainHasWrongCars