Fast DDS  Version 3.3.0
Fast DDS
Loading...
Searching...
No Matches
RemoteUnknownOperationError.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__REMOTEUNKNOWNOPERATIONERROR_HPP
20#define FASTDDS_DDS_RPC_EXCEPTIONS__REMOTEUNKNOWNOPERATIONERROR_HPP
21
22#include <fastdds/fastdds_dll.hpp>
23#include <fastdds/dds/rpc/exceptions/RpcRemoteException.hpp>
24#include <fastdds/dds/rpc/RemoteExceptionCode_t.hpp>
25
26namespace eprosima {
27namespace fastdds {
28namespace dds {
29namespace rpc {
30
35{
36
37public:
38
43 : RemoteUnknownOperationError("The operation called is unknown")
44 {
45 }
46
57
62 const RemoteUnknownOperationError& other) noexcept = default;
63
68 const RemoteUnknownOperationError& other) noexcept = default;
69
73 virtual ~RemoteUnknownOperationError() noexcept = default;
74
75};
76
77} // namespace rpc
78} // namespace dds
79} // namespace fastdds
80} // namespace eprosima
81
82#endif // FASTDDS_DDS_RPC_EXCEPTIONS__REMOTEUNKNOWNOPERATIONERROR_HPP
Exception thrown by the RPC API when the server does not recognize the invoked operation.
Definition RemoteUnknownOperationError.hpp:35
RemoteUnknownOperationError & operator=(const RemoteUnknownOperationError &other) noexcept=default
Copy assignment.
RemoteUnknownOperationError()
Constructor.
Definition RemoteUnknownOperationError.hpp:42
RemoteUnknownOperationError(const char *msg)
Constructor with custom message.
Definition RemoteUnknownOperationError.hpp:52
virtual ~RemoteUnknownOperationError() noexcept=default
Destructor.
RemoteUnknownOperationError(const RemoteUnknownOperationError &other) noexcept=default
Copy constructor.
Base class for exceptions that map to a RpcExceptionCode_t.
Definition RpcRemoteException.hpp:35
Definition DomainParticipant.hpp:46
RemoteExceptionCode_t
Enumeration of possible error codes that can be returned by a remote service.
Definition RemoteExceptionCode_t.hpp:30
@ REMOTE_EX_UNKNOWN_OPERATION
The operation called is unknown.
eProsima namespace.