exceptions.h
Go to the documentation of this file.
1 /******************************************************************************
2  STDR Simulator - Simple Two DImensional Robot Simulator
3  Copyright (C) 2013 STDR Simulator
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 3 of the License, or
7  (at your option) any later version.
8  This program is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  GNU General Public License for more details.
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software Foundation,
14  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 
16  Authors :
17  * Manos Tsardoulias, etsardou@gmail.com
18  * Aris Thallas, aris.thallas@gmail.com
19  * Chris Zalidis, zalidis@gmail.com
20 ******************************************************************************/
21 
22 #include <stdexcept>
23 
24 #ifndef EXCEPTIONS_H
25 #define EXCEPTIONS_H
26 
27 namespace stdr_robot {
28 
33 class ConnectionException : public std::runtime_error
34 {
35  public:
40  ConnectionException(const std::string errorDescription) :
41  std::runtime_error(errorDescription)
42  {
43  }
44 
45 };
50 class DoubleFrameIdException : public std::runtime_error
51 {
52  public:
57  DoubleFrameIdException(const std::string errorDescription) :
58  std::runtime_error(errorDescription)
59  {
60  }
61 
62 };
63 } // end of namespace stdr_robot
64 
65 #endif
Provides a double frame id exception. Publicly inherits from std::runtime_error. Used in robot handle...
Definition: exceptions.h:50
The main namespace for STDR Robot.
Definition: exceptions.h:27
DoubleFrameIdException(const std::string errorDescription)
Throws an std::runtime_error with a messsage.
Definition: exceptions.h:57
ConnectionException(const std::string errorDescription)
Throws an std::runtime_error with a messsage.
Definition: exceptions.h:40
Provides a connection exception. Publicly inherits from std::runtime_error. Used in robot handler...
Definition: exceptions.h:33


stdr_robot
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Mon Jun 10 2019 15:15:10