|
SUMO - Simulation of Urban MObility
|
00001 /****************************************************************************/ 00010 /****************************************************************************/ 00011 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/ 00012 // Copyright (C) 2001-2011 DLR (http://www.dlr.de/) and contributors 00013 /****************************************************************************/ 00014 // 00015 // This program is free software; you can redistribute it and/or modify 00016 // it under the terms of the GNU General Public License as published by 00017 // the Free Software Foundation; either version 2 of the License, or 00018 // (at your option) any later version. 00019 // 00020 /****************************************************************************/ 00021 #ifndef TRACIEXCEPTION_H 00022 #define TRACIEXCEPTION_H 00023 #ifndef NO_TRACI 00024 00025 00026 // =========================================================================== 00027 // included modules 00028 // =========================================================================== 00029 #ifdef _MSC_VER 00030 #include <windows_config.h> 00031 #else 00032 #include <config.h> 00033 #endif 00034 00035 #include <string> 00036 #include <stdexcept> 00037 00038 00039 // =========================================================================== 00040 // class definitions 00041 // =========================================================================== 00045 namespace traci { 00046 class TraCIException : public std::runtime_error { 00047 public: 00049 TraCIException(std::string what) 00050 : std::runtime_error(what) {} 00051 }; 00052 00053 } 00054 00055 #endif 00056 00057 #endif