SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraCIException.h
Go to the documentation of this file.
1 /****************************************************************************/
12 /****************************************************************************/
13 // SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
14 // Copyright (C) 2001-2012 DLR (http://www.dlr.de/) and contributors
15 /****************************************************************************/
16 //
17 // This file is part of SUMO.
18 // SUMO is free software: you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation, either version 3 of the License, or
21 // (at your option) any later version.
22 //
23 /****************************************************************************/
24 #ifndef TRACIEXCEPTION_H
25 #define TRACIEXCEPTION_H
26 #ifndef NO_TRACI
27 
28 
29 // ===========================================================================
30 // included modules
31 // ===========================================================================
32 #ifdef _MSC_VER
33 #include <windows_config.h>
34 #else
35 #include <config.h>
36 #endif
37 
38 #include <string>
39 #include <stdexcept>
40 
41 
42 // ===========================================================================
43 // class definitions
44 // ===========================================================================
48 namespace traci {
49 class TraCIException : public std::runtime_error {
50 public:
52  TraCIException(std::string what)
53  : std::runtime_error(what) {}
54 };
55 
56 }
57 
58 #endif
59 
60 #endif