Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
RpcFeedCancelledException.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__RPCINPUTFEEDCANCELLEDEXCEPTION_HPP
20#define FASTDDS_DDS_RPC_EXCEPTIONS__RPCINPUTFEEDCANCELLEDEXCEPTION_HPP
21
22#include <string>
23
24#include <fastdds/fastdds_dll.hpp>
25#include <fastdds/dds/rpc/exceptions/RpcException.hpp>
26#include <fastdds/dds/rpc/interfaces/RpcStatusCode.hpp>
27
28namespace eprosima {
29namespace fastdds {
30namespace dds {
31namespace rpc {
32
37{
38
39public:
40
45 RpcStatusCode reason)
46 : RpcException("Input feed cancelled with reason '" + std::to_string(reason) + "'")
47 {
48 }
49
54 const RpcFeedCancelledException& other) noexcept = default;
55
60 const RpcFeedCancelledException& other) noexcept = default;
61
65 virtual ~RpcFeedCancelledException() noexcept = default;
66
67};
68
69} // namespace rpc
70} // namespace dds
71} // namespace fastdds
72} // namespace eprosima
73
74#endif // FASTDDS_DDS_RPC_EXCEPTIONS__RPCINPUTFEEDCANCELLEDEXCEPTION_HPP
Base class for all exceptions thrown by the RPC API.
Definition RpcException.hpp:36
Exception thrown by the RPC API when the client cancels an input feed.
Definition RpcFeedCancelledException.hpp:37
RpcFeedCancelledException(RpcStatusCode reason)
Constructor.
Definition RpcFeedCancelledException.hpp:44
RpcFeedCancelledException(const RpcFeedCancelledException &other) noexcept=default
Copy constructor.
virtual ~RpcFeedCancelledException() noexcept=default
Destructor.
RpcFeedCancelledException & operator=(const RpcFeedCancelledException &other) noexcept=default
Copy assignment.
Definition DomainParticipant.hpp:46
uint32_t RpcStatusCode
Status codes for RPC operations.
Definition RpcStatusCode.hpp:32
eProsima namespace.
Definition EntityId_t.hpp:388