Fast DDS
Version 3.6.1.0
Fast DDS
Toggle main menu visibility
Loading...
Searching...
No Matches
Exception.hpp
1
// Copyright 2023 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
19
20
#ifndef FASTDDS_DDS_XTYPES_EXCEPTION__EXCEPTION_HPP
21
#define FASTDDS_DDS_XTYPES_EXCEPTION__EXCEPTION_HPP
22
23
#include <stdexcept>
24
#include <string>
25
26
#include <fastdds/fastdds_dll.hpp>
27
28
namespace
eprosima
{
29
namespace
fastdds
{
30
namespace
dds
{
31
namespace
xtypes
{
32
36
class
Exception
37
{
38
protected
:
39
40
Exception
() =
default
;
41
42
public
:
43
44
FASTDDS_EXPORTED_API
virtual
~Exception
() throw() = default;
45
51
FASTDDS_EXPORTED_API virtual const
char
*
what
() const throw() = 0;
52
53
};
54
58
class
InvalidArgumentError
: public
Exception
, public
std
::invalid_argument
59
{
60
public
:
61
62
FASTDDS_EXPORTED_API
explicit
InvalidArgumentError
(
63
const
std::string& msg);
64
65
FASTDDS_EXPORTED_API
InvalidArgumentError
(
66
const
InvalidArgumentError
& src);
67
68
FASTDDS_EXPORTED_API
virtual
~InvalidArgumentError
() throw();
69
70
FASTDDS_EXPORTED_API virtual const
char
*
what
() const throw();
71
72
};
73
74
}
// xtypes
75
}
// dds
76
}
// fastdds
77
}
// eprosima
78
79
#endif
// FASTDDS_DDS_XTYPES_EXCEPTION__EXCEPTION_HPP
eprosima::fastdds::dds::xtypes::Exception::Exception
Exception()=default
eprosima::fastdds::dds::xtypes::Exception::~Exception
virtual FASTDDS_EXPORTED_API ~Exception()=default
eprosima::fastdds::dds::xtypes::Exception::what
virtual FASTDDS_EXPORTED_API const char * what() const =0
Retrieve information about the exception that was thrown.
eprosima::fastdds::dds::xtypes::InvalidArgumentError::InvalidArgumentError
FASTDDS_EXPORTED_API InvalidArgumentError(const InvalidArgumentError &src)
eprosima::fastdds::dds::xtypes::InvalidArgumentError::InvalidArgumentError
FASTDDS_EXPORTED_API InvalidArgumentError(const std::string &msg)
eprosima::fastdds::dds::xtypes::InvalidArgumentError::~InvalidArgumentError
virtual FASTDDS_EXPORTED_API ~InvalidArgumentError()
eprosima::fastdds::dds::xtypes::InvalidArgumentError::what
virtual FASTDDS_EXPORTED_API const char * what() const
Retrieve information about the exception that was thrown.
eprosima::fastdds::dds::xtypes
Definition
QosPolicies.hpp:2489
eprosima::fastdds::dds
Definition
BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.
std
Definition
EntityId_t.hpp:388
include
fastdds
dds
xtypes
exception
Exception.hpp
Generated on
for