| Fast DDS Version 3.3.0 Fast DDS

Loading...
Searching...
No Matches
RpcBrokenPipeException.hpp
1// Copyright 2025 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
18
19#ifndef FASTDDS_DDS_RPC_EXCEPTIONS__RPCBROKENPIPEEXCEPTION_HPP
20#define FASTDDS_DDS_RPC_EXCEPTIONS__RPCBROKENPIPEEXCEPTION_HPP
21
22#include <fastdds/fastdds_dll.hpp>
23#include <fastdds/dds/rpc/exceptions/RpcException.hpp>
24
25 namespace eprosima {
26 namespace fastdds {
27 namespace dds {
28 namespace rpc {
29
33 class RpcBrokenPipeException : public RpcException
34{
35
36 public:
37
41 RpcBrokenPipeException(
42 bool local_is_server)
43 : RpcException(local_is_server ? "Communication lost with the client" : "Communication lost with the server")
44 {
45 }
46
50 RpcBrokenPipeException(
51 const RpcBrokenPipeException& other) noexcept = default;
52
56 RpcBrokenPipeException& operator =(
57 const RpcBrokenPipeException& other) noexcept = default;
58
62 virtual ~RpcBrokenPipeException() noexcept = default;
63
64};
65
66} // namespace rpc
67} // namespace dds
68} // namespace fastdds
69} // namespace eprosima
70
71#endif // FASTDDS_DDS_RPC_EXCEPTIONS__RPCBROKENPIPEEXCEPTION_HPP
eprosima::fastdds::dds::rpc::RpcBrokenPipeException::RpcBrokenPipeException
RpcBrokenPipeException(const RpcBrokenPipeException &other) noexcept=default
Copy constructor.
eprosima::fastdds::dds::rpc::RpcBrokenPipeException::~RpcBrokenPipeException
virtual ~RpcBrokenPipeException() noexcept=default
Destructor.
eprosima::fastdds::dds::rpc::RpcBrokenPipeException::operator=
RpcBrokenPipeException & operator=(const RpcBrokenPipeException &other) noexcept=default
Copy assignment.
eprosima::fastdds::dds::rpc::RpcBrokenPipeException::RpcBrokenPipeException
RpcBrokenPipeException(bool local_is_server)
Constructor.
Definition RpcBrokenPipeException.hpp:41
eprosima::fastdds::dds::rpc::RpcException::RpcException
RpcException(const std::string &message)
Constructor.
Definition RpcException.hpp:45
eprosima::fastdds::dds::rpc
Definition DomainParticipant.hpp:59
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.