TraDemGen Logo  1.00.0
C++ Simulated Travel Demand Generation Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
TRADEMGEN_Exceptions.hpp
Go to the documentation of this file.
1 #ifndef __TRADEMGEN_TRADEMGEN_EXCEPTIONS_HPP
2 #define __TRADEMGEN_TRADEMGEN_EXCEPTIONS_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <exception>
9 // StdAir
10 #include <stdair/stdair_exceptions.hpp>
11 
12 namespace TRADEMGEN {
13 
14  // ///////// Exceptions ///////////
18  class TrademgenGenerationException : public stdair::RootException {
19  public:
23  TrademgenGenerationException (const std::string& iWhat)
24  : stdair::RootException (iWhat) {}
25  };
26 
31  : public stdair::FileNotFoundException {
32  public:
36  DemandInputFileNotFoundException (const std::string& iWhat)
37  : stdair::FileNotFoundException (iWhat) {}
38  };
39 
44  public:
48  IndexOutOfRangeException (const std::string& iWhat)
49  : TrademgenGenerationException (iWhat) {}
50  };
51 
52 }
53 #endif // __TRADEMGEN_TRADEMGEN_EXCEPTIONS_HPP
54