Exceptions.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright (C) 2014 by Ralf Kaestner *
3  * ralf.kaestner@gmail.com *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the Lesser GNU General Public License as published by*
7  * the Free Software Foundation; either version 3 of the License, or *
8  * (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * Lesser GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the Lesser GNU General Public License *
16  * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17  ******************************************************************************/
18 
23 #ifndef VARIANT_TOPIC_TOOLS_EXCEPTIONS_H
24 #define VARIANT_TOPIC_TOOLS_EXCEPTIONS_H
25 
26 #include <ros/ros.h>
27 
28 namespace variant_topic_tools {
32  public ros::Exception {
33  public:
37  };
38 
42  public ros::Exception {
43  public:
46  InvalidOperationException(const std::string& what);
47  };
48 
52  public ros::Exception {
53  public:
57  };
58 
63  public ros::Exception {
64  public:
68  };
69 
73  public ros::Exception {
74  public:
77  NoSuchDataTypeException(const std::string& identifier);
78  };
79 
83  public ros::Exception {
84  public:
87  AmbiguousDataTypeIdentifierException(const std::string& identifier);
88  };
89 
93  public ros::Exception {
94  public:
97  DataTypeMismatchException(const std::string& expectedDataType, const
98  std::string& providedDataType);
99  };
100 
104  public ros::Exception {
105  public:
108  AmbiguousMemberNameException(const std::string& name);
109  };
110 
114  public ros::Exception {
115  public:
118  NoSuchMemberException(int index);
119 
122  NoSuchMemberException(const std::string& name);
123  };
124 
128  public ros::Exception {
129  public:
133  };
134 
138  public ros::Exception {
139  public:
142  MD5SumMismatchException(const std::string& expectedMD5Sum, const
143  std::string& providedMD5Sum);
144  };
145 
149  public ros::Exception {
150  public:
153  InvalidMessageTypeException(const std::string& invalidMessageType);
154  };
155 
159  public ros::Exception {
160  public:
163  MessageTypeMismatchException(const std::string& expectedMessageType,
164  const std::string& providedMessageType);
165  };
166 
171  public ros::Exception {
172  public:
175  DefinitionParseException(const std::string& dataType, const std::string&
176  line, const std::string& what);
177  };
178 
182  public ros::Exception {
183  public:
186  PackageNotFoundException(const std::string& package);
187  };
188 
192  public ros::Exception {
193  public:
196  FileOpenException(const std::string& filename);
197  };
198 
202  public ros::Exception {
203  public:
207  };
208 };
209 
210 #endif
Exception thrown in case of an invalid operation.
Definition: Exceptions.h:41
Exception thrown in case of an ambiguous data type identifier.
Definition: Exceptions.h:82
Exception thrown in case of an invalid data type.
Definition: Exceptions.h:51
Exception thrown in case of a message type mismatch.
Definition: Exceptions.h:158
Exception thrown in case of a message MD5 sum mismatch.
Definition: Exceptions.h:137
string package
Exception thrown in case of a null pointer operation.
Definition: Exceptions.h:31
NullPointerException()
Default constructor.
Definition: Exceptions.cpp:29
Exception thrown in case of an invalid serializer.
Definition: Exceptions.h:201
Exception thrown in case of an error to open a file.
Definition: Exceptions.h:191
Exception thrown in case of an invalid message type.
Definition: Exceptions.h:148
Exception thrown in case of an ambiguous member name.
Definition: Exceptions.h:103
Exception thrown in case of an error to parse the message definition.
Definition: Exceptions.h:170
Exception thrown in case of a data type mismatch.
Definition: Exceptions.h:92
Exception thrown in case of an attempted modification of an immutable data type.
Definition: Exceptions.h:62
Exception thrown in case of an invalid message member.
Definition: Exceptions.h:127
Exception thrown in case of a non-existent data type.
Definition: Exceptions.h:72
Exception thrown in case of a non-existent member.
Definition: Exceptions.h:113
Exception thrown in case of a package not being found.
Definition: Exceptions.h:181


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Sat Jan 9 2021 03:56:49