$treeview $search $mathjax
00001 #ifndef __TRADEMGEN_TRADEMGEN_EXCEPTIONS_HPP 00002 #define __TRADEMGEN_TRADEMGEN_EXCEPTIONS_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // STL 00008 #include <exception> 00009 // StdAir 00010 #include <stdair/stdair_exceptions.hpp> 00011 00012 namespace TRADEMGEN { 00013 00014 // ///////// Exceptions /////////// 00018 class TrademgenGenerationException : public stdair::RootException { 00019 public: 00023 TrademgenGenerationException (const std::string& iWhat) 00024 : stdair::RootException (iWhat) {} 00025 }; 00026 00030 class DemandInputFileNotFoundException 00031 : public stdair::FileNotFoundException { 00032 public: 00036 DemandInputFileNotFoundException (const std::string& iWhat) 00037 : stdair::FileNotFoundException (iWhat) {} 00038 }; 00039 00043 class IndexOutOfRangeException : public TrademgenGenerationException { 00044 public: 00048 IndexOutOfRangeException (const std::string& iWhat) 00049 : TrademgenGenerationException (iWhat) {} 00050 }; 00051 00052 } 00053 #endif // __TRADEMGEN_TRADEMGEN_EXCEPTIONS_HPP 00054