| 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
18
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
28 namespace eprosima {
29 namespace fastdds {
30 namespace dds {
31 namespace rpc {
32
36 class RpcFeedCancelledException : public RpcException
37{
38
39 public:
40
44 RpcFeedCancelledException(
45 RpcStatusCode reason)
46 : RpcException("Input feed cancelled with reason '" + std::to_string(reason) + "'")
47 {
48 }
49
53 RpcFeedCancelledException(
54 const RpcFeedCancelledException& other) noexcept = default;
55
59 RpcFeedCancelledException& operator =(
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
eprosima::fastdds::dds::rpc::RpcException::RpcException
RpcException(const std::string &message)
Constructor.
Definition RpcException.hpp:45
eprosima::fastdds::dds::rpc::RpcFeedCancelledException::RpcFeedCancelledException
RpcFeedCancelledException(RpcStatusCode reason)
Constructor.
Definition RpcFeedCancelledException.hpp:44
eprosima::fastdds::dds::rpc::RpcFeedCancelledException::RpcFeedCancelledException
RpcFeedCancelledException(const RpcFeedCancelledException &other) noexcept=default
Copy constructor.
eprosima::fastdds::dds::rpc::RpcFeedCancelledException::~RpcFeedCancelledException
virtual ~RpcFeedCancelledException() noexcept=default
Destructor.
eprosima::fastdds::dds::rpc::RpcFeedCancelledException::operator=
RpcFeedCancelledException & operator=(const RpcFeedCancelledException &other) noexcept=default
Copy assignment.
eprosima::fastdds::dds::rpc
Definition DomainParticipant.hpp:59
eprosima::fastdds::dds::rpc::RpcStatusCode
uint32_t RpcStatusCode
Status codes for RPC operations.
Definition RpcStatusCode.hpp:32
eprosima::fastdds::dds
Definition BuiltinTopicKey.hpp:26
eprosima::fastdds
eprosima
eProsima namespace.
std
Definition EntityId_t.hpp:388