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
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
25namespace eprosima {
26namespace fastdds {
27namespace dds {
28namespace rpc {
29
34{
35
36public:
37
42 bool local_is_server)
43 : RpcException(local_is_server ? "Communication lost with the client" : "Communication lost with the server")
44 {
45 }
46
51 const RpcBrokenPipeException& other) noexcept = default;
52
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
Exception thrown by the RPC API when the communication with the remote endpoint breaks.
Definition RpcBrokenPipeException.hpp:34
RpcBrokenPipeException(const RpcBrokenPipeException &other) noexcept=default
Copy constructor.
virtual ~RpcBrokenPipeException() noexcept=default
Destructor.
RpcBrokenPipeException & operator=(const RpcBrokenPipeException &other) noexcept=default
Copy assignment.
RpcBrokenPipeException(bool local_is_server)
Constructor.
Definition RpcBrokenPipeException.hpp:41
Base class for all exceptions thrown by the RPC API.
Definition RpcException.hpp:36
Definition DomainParticipant.hpp:46
eProsima namespace.