Main Page
Namespaces
Classes
Files
File List
File Members
include
variant_topic_tools
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
{
31
class
NullPointerException
:
32
public
ros::Exception
{
33
public
:
36
NullPointerException
();
37
};
38
41
class
InvalidOperationException
:
42
public
ros::Exception
{
43
public
:
46
InvalidOperationException
(
const
std::string& what);
47
};
48
51
class
InvalidDataTypeException
:
52
public
ros::Exception
{
53
public
:
56
InvalidDataTypeException
();
57
};
58
62
class
ImmutableDataTypeException
:
63
public
ros::Exception
{
64
public
:
67
ImmutableDataTypeException
();
68
};
69
72
class
NoSuchDataTypeException
:
73
public
ros::Exception
{
74
public
:
77
NoSuchDataTypeException
(
const
std::string& identifier);
78
};
79
82
class
AmbiguousDataTypeIdentifierException
:
83
public
ros::Exception
{
84
public
:
87
AmbiguousDataTypeIdentifierException
(
const
std::string& identifier);
88
};
89
92
class
DataTypeMismatchException
:
93
public
ros::Exception
{
94
public
:
97
DataTypeMismatchException
(
const
std::string& expectedDataType,
const
98
std::string& providedDataType);
99
};
100
103
class
AmbiguousMemberNameException
:
104
public
ros::Exception
{
105
public
:
108
AmbiguousMemberNameException
(
const
std::string& name);
109
};
110
113
class
NoSuchMemberException
:
114
public
ros::Exception
{
115
public
:
118
NoSuchMemberException
(
int
index);
119
122
NoSuchMemberException
(
const
std::string& name);
123
};
124
127
class
InvalidMessageMemberException
:
128
public
ros::Exception
{
129
public
:
132
InvalidMessageMemberException
();
133
};
134
137
class
MD5SumMismatchException
:
138
public
ros::Exception
{
139
public
:
142
MD5SumMismatchException
(
const
std::string& expectedMD5Sum,
const
143
std::string& providedMD5Sum);
144
};
145
148
class
InvalidMessageTypeException
:
149
public
ros::Exception
{
150
public
:
153
InvalidMessageTypeException
(
const
std::string& invalidMessageType);
154
};
155
158
class
MessageTypeMismatchException
:
159
public
ros::Exception
{
160
public
:
163
MessageTypeMismatchException
(
const
std::string& expectedMessageType,
164
const
std::string& providedMessageType);
165
};
166
170
class
DefinitionParseException
:
171
public
ros::Exception
{
172
public
:
175
DefinitionParseException
(
const
std::string& dataType,
const
std::string&
176
line,
const
std::string& what);
177
};
178
181
class
PackageNotFoundException
:
182
public
ros::Exception
{
183
public
:
186
PackageNotFoundException
(
const
std::string&
package
);
187
};
188
191
class
FileOpenException
:
192
public
ros::Exception
{
193
public
:
196
FileOpenException
(
const
std::string& filename);
197
};
198
201
class
InvalidSerializerException
:
202
public
ros::Exception
{
203
public
:
206
InvalidSerializerException
();
207
};
208
};
209
210
#endif
variant_topic_tools
Definition:
ArrayDataType.h:29
variant_topic_tools::InvalidOperationException
Exception thrown in case of an invalid operation.
Definition:
Exceptions.h:41
variant_topic_tools::AmbiguousDataTypeIdentifierException
Exception thrown in case of an ambiguous data type identifier.
Definition:
Exceptions.h:82
variant_topic_tools::InvalidDataTypeException
Exception thrown in case of an invalid data type.
Definition:
Exceptions.h:51
variant_topic_tools::MessageTypeMismatchException
Exception thrown in case of a message type mismatch.
Definition:
Exceptions.h:158
variant_topic_tools::MD5SumMismatchException
Exception thrown in case of a message MD5 sum mismatch.
Definition:
Exceptions.h:137
package
string package
variant_topic_tools::NullPointerException
Exception thrown in case of a null pointer operation.
Definition:
Exceptions.h:31
variant_topic_tools::NullPointerException::NullPointerException
NullPointerException()
Default constructor.
Definition:
Exceptions.cpp:29
variant_topic_tools::InvalidSerializerException
Exception thrown in case of an invalid serializer.
Definition:
Exceptions.h:201
variant_topic_tools::FileOpenException
Exception thrown in case of an error to open a file.
Definition:
Exceptions.h:191
variant_topic_tools::InvalidMessageTypeException
Exception thrown in case of an invalid message type.
Definition:
Exceptions.h:148
variant_topic_tools::AmbiguousMemberNameException
Exception thrown in case of an ambiguous member name.
Definition:
Exceptions.h:103
variant_topic_tools::DefinitionParseException
Exception thrown in case of an error to parse the message definition.
Definition:
Exceptions.h:170
variant_topic_tools::DataTypeMismatchException
Exception thrown in case of a data type mismatch.
Definition:
Exceptions.h:92
variant_topic_tools::ImmutableDataTypeException
Exception thrown in case of an attempted modification of an immutable data type.
Definition:
Exceptions.h:62
variant_topic_tools::InvalidMessageMemberException
Exception thrown in case of an invalid message member.
Definition:
Exceptions.h:127
ros.h
variant_topic_tools::NoSuchDataTypeException
Exception thrown in case of a non-existent data type.
Definition:
Exceptions.h:72
ros::Exception
variant_topic_tools::NoSuchMemberException
Exception thrown in case of a non-existent member.
Definition:
Exceptions.h:113
variant_topic_tools::PackageNotFoundException
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