3#ifndef ICE_LOCAL_EXCEPTIONS_H
4#define ICE_LOCAL_EXCEPTIONS_H
6#include "Ice/Identity.h"
7#include "Ice/ReplyStatus.h"
8#include "LocalException.h"
43 std::optional<std::string> message = std::nullopt);
49 [[nodiscard]]
const char*
ice_id() const noexcept override;
61 [[nodiscard]]
const Identity&
id() const noexcept {
return *_id; }
64 [[nodiscard]]
const std::string&
facet() const noexcept {
return *_facet; }
67 [[nodiscard]]
const std::string&
operation() const noexcept {
return *_operation; }
84 std::string operation);
99 std::shared_ptr<Identity> _id;
100 std::shared_ptr<std::string> _facet;
101 std::shared_ptr<std::string> _operation;
123 [[nodiscard]]
const char*
ice_id() const noexcept final;
146 [[nodiscard]]
const char*
ice_id() const noexcept final;
170 [[nodiscard]]
const char*
ice_id() const noexcept final;
185 [[nodiscard]]
const char*
ice_id() const noexcept override;
207 [[nodiscard]]
const char*
ice_id() const noexcept final;
228 [[nodiscard]]
const char*
ice_id() const noexcept final;
242 [[nodiscard]]
const char*
ice_id() const noexcept override;
262 [[nodiscard]]
const char*
ice_id() const noexcept final;
279 [[nodiscard]]
const char*
ice_id() const noexcept final;
287 using ProtocolException::ProtocolException;
289 [[nodiscard]]
const char*
ice_id() const noexcept final;
303 [[nodiscard]]
const char*
ice_id() const noexcept override;
319 [[nodiscard]]
const char*
ice_id() const noexcept final;
335 [[nodiscard]]
const char*
ice_id() const noexcept final;
348 [[nodiscard]]
const char*
ice_id() const noexcept final;
379 [[nodiscard]]
const char*
ice_id() const noexcept override;
391 std::
string messagePrefix,
393 const std::function<std::
string(
ErrorCode)>& errorToString);
421 [[nodiscard]]
const char*
ice_id() const noexcept final;
436 [[nodiscard]]
const char*
ice_id() const noexcept final;
473 [[nodiscard]]
const char*
ice_id() const noexcept override;
486 [[nodiscard]]
const char*
ice_id() const noexcept override;
500 [[nodiscard]]
const char*
ice_id() const noexcept final;
516 [[nodiscard]]
const char*
ice_id() const noexcept final;
538 [[nodiscard]]
const std::string&
kindOfObject() const noexcept {
return *_kindOfObject; }
541 [[nodiscard]]
const std::string&
id() const noexcept {
return *_id; }
543 [[nodiscard]]
const char*
ice_id() const noexcept final;
546 std::shared_ptr<std::
string> _kindOfObject;
547 std::shared_ptr<std::
string> _id;
560 :
LocalException(file, line,
"the Ice communicator object is destroyed")
564 [[nodiscard]]
const char*
ice_id() const noexcept final;
587 [[nodiscard]]
const char*
ice_id() const noexcept final;
590 bool _closedByApplication;
613 [[nodiscard]]
const char*
ice_id() const noexcept final;
616 bool _closedByApplication;
626 [[nodiscard]]
const char*
ice_id() const noexcept final;
638 :
LocalException(file, line,
"cannot change the properties of a fixed proxy")
642 [[nodiscard]]
const char*
ice_id() const noexcept final;
652 [[nodiscard]]
const char*
ice_id() const noexcept final;
666 [[nodiscard]]
const char*
ice_id() const noexcept final;
682 [[nodiscard]]
const char*
ice_id() const noexcept final;
698 [[nodiscard]]
const std::string&
kindOfObject() const noexcept {
return *_kindOfObject; }
701 [[nodiscard]]
const std::string&
id() const noexcept {
return *_id; };
703 [[nodiscard]]
const char*
ice_id() const noexcept final;
706 std::shared_ptr<std::
string> _kindOfObject;
707 std::shared_ptr<std::
string> _id;
722 :
LocalException(file, line,
"object adapter '" + std::string{name} +
"' is deactivated")
726 [[nodiscard]]
const char*
ice_id() const noexcept final;
739 :
LocalException(file, line,
"object adapter '" + std::string{name} +
"' is destroyed")
743 [[nodiscard]]
const char*
ice_id() const noexcept final;
757 :
LocalException(file, line,
"an object adapter with ID '" + std::string{adapterId} +
"' is already active")
761 [[nodiscard]]
const char*
ice_id() const noexcept final;
771 [[nodiscard]]
const char*
ice_id() const noexcept final;
781 [[nodiscard]]
const char*
ice_id() const noexcept final;
791 [[nodiscard]]
const char*
ice_id() const noexcept final;
809 "cannot invoke operation '" + std::string{operation} +
810 "' with a oneway, batchOneway, datagram, or batchDatagram proxy")
814 [[nodiscard]]
const char*
ice_id() const noexcept final;
824 [[nodiscard]]
const char*
ice_id() const noexcept final;
const std::string & id() const noexcept
Gets the ID (or name) of the object that is registered already.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
AlreadyRegisteredException(const char *file, int line, std::string kindOfObject, std::string id)
Constructs a AlreadyRegisteredException.
const std::string & kindOfObject() const noexcept
Gets the kind of object that could not be removed: "servant", "facet", "object", "default servant",...
CloseConnectionException(const char *file, int line)
Constructs a CloseConnectionException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
CloseTimeoutException(const char *file, int line)
Constructs a CloseTimeoutException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
CommunicatorDestroyedException(const char *file, int line)
Constructs a CommunicatorDestroyedException.
SocketException(const char *file, int line, std::string messagePrefix, ErrorCode error)
Constructs a SocketException.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
The exception that is thrown when a connection establishment fails.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ConnectTimeoutException(const char *file, int line)
Constructs a ConnectTimeoutException.
ConnectionAbortedException(const char *file, int line, std::string message, bool closedByApplication)
Constructs a ConnectionAbortedException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
bool closedByApplication() const noexcept
Returns true if the connection was aborted by the application, false if it was aborted by the Ice run...
bool closedByApplication() const noexcept
Returns true if the connection was closed by the application, false if it was closed by the Ice runti...
ConnectionClosedException(const char *file, int line, std::string message, bool closedByApplication)
Constructs a ConnectionClosedException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ConnectionLostException(const char *file, int line, ErrorCode error)
Constructs a ConnectionLostException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ConnectionRefusedException(const char *file, int line)
Constructs a ConnectionRefusedException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
DNSException(const char *file, int line, ErrorCode error, std::string_view host)
Constructs a DNSException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
DatagramLimitException(const char *file, int line)
Constructs a DatagramLimitException.
DispatchException(const char *file, int line, ReplyStatus replyStatus, std::optional< std::string > message=std::nullopt)
Constructs a DispatchException.
ReplyStatus replyStatus() const noexcept
Gets the reply status.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
FacetNotExistException(const char *file, int line)
Constructs a FacetNotExistException without specifying the details of the current request.
FacetNotExistException(const char *file, int line, Identity id, std::string facet, std::string operation)
Constructs a FacetNotExistException.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
The exception that is thrown when attempting to use an unsupported feature.
FileException(const char *file, int line, std::string_view path, ErrorCode error=0)
Constructs a FileException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
FixedProxyException(const char *file, int line)
Constructs a FixedProxyException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
The exception that is thrown when communicator initialization fails.
InvocationCanceledException(const char *file, int line)
Constructs an InvocationCanceledException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
InvocationTimeoutException(const char *file, int line)
Constructs an InvocationTimeoutException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
The exception that is thrown when an error occurs during marshaling or unmarshaling.
NoEndpointException(const char *file, int line, const ObjectPrx &proxy)
Constructs a NoEndpointException.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
const std::string & kindOfObject() const noexcept
Gets the kind of object that is not registered.
NotRegisteredException(const char *file, int line, std::string kindOfObject, std::string id)
Constructs a NotRegisteredException.
const std::string & id() const noexcept
Gets the ID (or name) of the object that is not registered.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ObjectAdapterDeactivatedException(const char *file, int line, std::string_view name)
Constructs an ObjectAdapterDeactivatedException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ObjectAdapterDestroyedException(const char *file, int line, std::string_view name)
Constructs an ObjectAdapterDestroyedException.
ObjectAdapterIdInUseException(const char *file, int line, std::string_view adapterId)
Constructs an ObjectAdapterIdInUseException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ObjectNotExistException(const char *file, int line)
Constructs an ObjectNotExistException without specifying the details of the current request.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
ObjectNotExistException(const char *file, int line, Identity id, std::string facet, std::string operation)
Constructs an ObjectNotExistException.
The base class for all Ice proxies.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
OperationNotExistException(const char *file, int line)
Constructs an OperationNotExistException without specifying the details of the current request.
OperationNotExistException(const char *file, int line, Identity id, std::string facet, std::string operation)
Constructs an OperationNotExistException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
The exception that is thrown when the parsing of a string fails.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
The exception that is thrown when the initialization of an Ice plugin fails.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
The exception that is thrown when a property cannot be set or retrieved.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
The base class for exceptions related to the Ice protocol.
const std::string & operation() const noexcept
The operation name of the request.
const Identity & id() const noexcept
The identity of the Ice Object to which the request was sent.
const std::string & facet() const noexcept
The facet to which the request was sent.
The base class for the 3 NotExist exceptions.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
The exception that is thrown when a failure occurs in the security subsystem.
SocketException(const char *file, int line, std::string messagePrefix, ErrorCode error)
Constructs a SocketException.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
SocketException(const char *file, int line, std::string message)
Constructs a SocketException without an error.
SyscallException(const char *file, int line, std::string messagePrefix, ErrorCode error)
Constructs a SyscallException.
SocketException(const char *file, int line, ErrorCode error)
Constructs a SocketException with a generic message.
int ErrorCode
The error code is a DWORD (unsigned long) on Windows and an int on other platforms.
ErrorCode error() const noexcept
Gets the error number describing the system exception.
SyscallException(const char *file, int line, std::string messagePrefix, ErrorCode error)
Constructs a SyscallException.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
LocalException(const char *file, int line, std::string message)
Constructs a local exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
The exception that is thrown when a timeout occurs.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
TwowayOnlyException(const char *file, int line, std::string_view operation)
Constructs a TwowayOnlyException.
UnknownException(const char *file, int line, std::string message)
Constructs an UnknownException.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
UnknownLocalException(const char *file, int line, std::string message)
Constructs an UnknownLocalException.
const char * ice_id() const noexcept final
Returns the type ID of this exception.
UnknownUserException(const char *file, int line, std::string message)
Constructs an UnknownUserException.
static UnknownUserException fromTypeId(const char *file, int line, const char *typeId)
Creates an UnknownUserException from the type ID of an unexpected exception.
ReplyStatus
Represents the status of a reply.
Represents the identity of an Ice object.