7#ifndef IceGrid_Exception_h_
8#define IceGrid_Exception_h_
12#include <Ice/BuiltinSequences.h>
13#include <Ice/Identity.h>
14#include <IceGrid/Config.h>
16#ifndef ICE_DISABLE_VERSION
17# if ICE_INT_VERSION != 30850
18# error Ice version mismatch: an exact match is required for beta generated code
23# if defined(ICEGRID_API_EXPORTS)
24# define ICEGRID_API ICE_DECLSPEC_EXPORT
26# define ICEGRID_API ICE_DECLSPEC_IMPORT
58 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
60 return std::tie(
name);
68 [[nodiscard]] const
char*
ice_id() const noexcept override;
77 void _writeImpl(
Ice::OutputStream*) const override;
80 void _readImpl(
Ice::InputStream*) override;
103 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
113 [[nodiscard]] const
char*
ice_id() const noexcept override;
122 void _writeImpl(
Ice::OutputStream*) const override;
125 void _readImpl(
Ice::InputStream*) override;
150 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
152 return std::tie(
id,
reason);
160 [[nodiscard]] const
char*
ice_id() const noexcept override;
172 void _writeImpl(
Ice::OutputStream*) const override;
175 void _readImpl(
Ice::InputStream*) override;
200 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
202 return std::tie(
id,
reason);
210 [[nodiscard]] const
char*
ice_id() const noexcept override;
222 void _writeImpl(
Ice::OutputStream*) const override;
225 void _readImpl(
Ice::InputStream*) override;
248 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
258 [[nodiscard]] const
char*
ice_id() const noexcept override;
267 void _writeImpl(
Ice::OutputStream*) const override;
270 void _readImpl(
Ice::InputStream*) override;
293 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
303 [[nodiscard]] const
char*
ice_id() const noexcept override;
312 void _writeImpl(
Ice::OutputStream*) const override;
315 void _readImpl(
Ice::InputStream*) override;
338 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
348 [[nodiscard]] const
char*
ice_id() const noexcept override;
357 void _writeImpl(
Ice::OutputStream*) const override;
360 void _readImpl(
Ice::InputStream*) override;
383 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
385 return std::tie(
name);
393 [[nodiscard]] const
char*
ice_id() const noexcept override;
402 void _writeImpl(
Ice::OutputStream*) const override;
405 void _readImpl(
Ice::InputStream*) override;
428 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
430 return std::tie(
name);
438 [[nodiscard]] const
char*
ice_id() const noexcept override;
447 void _writeImpl(
Ice::OutputStream*) const override;
450 void _readImpl(
Ice::InputStream*) override;
473 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
483 [[nodiscard]] const
char*
ice_id() const noexcept override;
492 void _writeImpl(
Ice::OutputStream*) const override;
495 void _readImpl(
Ice::InputStream*) override;
520 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
530 [[nodiscard]] const
char*
ice_id() const noexcept override;
542 void _writeImpl(
Ice::OutputStream*) const override;
545 void _readImpl(
Ice::InputStream*) override;
570 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
580 [[nodiscard]] const
char*
ice_id() const noexcept override;
592 void _writeImpl(
Ice::OutputStream*) const override;
595 void _readImpl(
Ice::InputStream*) override;
620 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
630 [[nodiscard]] const
char*
ice_id() const noexcept override;
642 void _writeImpl(
Ice::OutputStream*) const override;
645 void _readImpl(
Ice::InputStream*) override;
668 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
678 [[nodiscard]] const
char*
ice_id() const noexcept override;
687 void _writeImpl(
Ice::OutputStream*) const override;
690 void _readImpl(
Ice::InputStream*) override;
713 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
723 [[nodiscard]] const
char*
ice_id() const noexcept override;
732 void _writeImpl(
Ice::OutputStream*) const override;
735 void _readImpl(
Ice::InputStream*) override;
758 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
768 [[nodiscard]] const
char*
ice_id() const noexcept override;
777 void _writeImpl(
Ice::OutputStream*) const override;
780 void _readImpl(
Ice::InputStream*) override;
794 [[nodiscard]] const
char*
ice_id() const noexcept override;
800 void _writeImpl(
Ice::OutputStream*) const override;
803 void _readImpl(
Ice::InputStream*) override;
826 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
836 [[nodiscard]] const
char*
ice_id() const noexcept override;
845 void _writeImpl(
Ice::OutputStream*) const override;
848 void _readImpl(
Ice::InputStream*) override;
873 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
883 [[nodiscard]] const
char*
ice_id() const noexcept override;
892 void _writeImpl(
Ice::OutputStream*) const override;
895 void _readImpl(
Ice::InputStream*) override;
924 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
934 [[nodiscard]] const
char*
ice_id() const noexcept override;
943 void _writeImpl(
Ice::OutputStream*) const override;
946 void _readImpl(
Ice::InputStream*) override;
952#include <Ice/PopDisableWarnings.h>
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string lockUserId
The id of the user holding the lock (if any).
AccessDeniedException() noexcept=default
Default constructor.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
AccessDeniedException(const AccessDeniedException &) noexcept=default
Copy constructor.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
void ice_throw() const override
Throws this exception.
AdapterNotExistException(const AdapterNotExistException &) noexcept=default
Copy constructor.
void ice_throw() const override
Throws this exception.
AdapterNotExistException() noexcept=default
Default constructor.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
std::string reason
The reason why the object couldn't be allocated.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
AllocationException(const AllocationException &) noexcept=default
Copy constructor.
void ice_throw() const override
Throws this exception.
AllocationException() noexcept=default
Default constructor.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_throw() const override
Throws this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
AllocationException() noexcept=default
Default constructor.
The exception that is thrown when the request to allocate an object times out.
void ice_throw() const override
Throws this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string name
The name of the application.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
ApplicationNotExistException(const ApplicationNotExistException &) noexcept=default
Copy constructor.
ApplicationNotExistException() noexcept=default
Default constructor.
BadSignalException(const BadSignalException &) noexcept=default
Copy constructor.
void ice_throw() const override
Throws this exception.
std::string reason
The details of the unknown signal.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
BadSignalException() noexcept=default
Default constructor.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
std::string reason
The reason for the failure.
DeploymentException(const DeploymentException &) noexcept=default
Copy constructor.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
DeploymentException() noexcept=default
Default constructor.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
std::string reason
The reason for the failure.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
FileNotAvailableException() noexcept=default
Default constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
FileNotAvailableException(const FileNotAvailableException &) noexcept=default
Copy constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
std::string name
The node name.
NodeNotExistException() noexcept=default
Default constructor.
NodeNotExistException(const NodeNotExistException &) noexcept=default
Copy constructor.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string name
The name of the node that is not reachable.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
const char * ice_id() const noexcept override
Returns the type ID of this exception.
NodeUnreachableException(const NodeUnreachableException &) noexcept=default
Copy constructor.
std::string reason
The reason why the node couldn't be reached.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
NodeUnreachableException() noexcept=default
Default constructor.
void ice_throw() const override
Throws this exception.
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
std::tuple< const ::Ice::Identity & > ice_tuple() const
Creates a tuple with all the fields of this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
ObjectExistsException(const ObjectExistsException &) noexcept=default
Copy constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
ObjectExistsException() noexcept=default
Default constructor.
void ice_throw() const override
Throws this exception.
ObjectNotRegisteredException() noexcept=default
Default constructor.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
ObjectNotRegisteredException(const ObjectNotRegisteredException &) noexcept=default
Copy constructor.
std::tuple< const ::Ice::Identity & > ice_tuple() const
Creates a tuple with all the fields of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
ObserverAlreadyRegisteredException() noexcept=default
Default constructor.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
std::tuple< const ::Ice::Identity & > ice_tuple() const
Creates a tuple with all the fields of this exception.
ObserverAlreadyRegisteredException(const ObserverAlreadyRegisteredException &) noexcept=default
Copy constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_throw() const override
Throws this exception.
PermissionDeniedException() noexcept=default
Default constructor.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_throw() const override
Throws this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
PermissionDeniedException(const PermissionDeniedException &) noexcept=default
Copy constructor.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string reason
The reason why permission was denied.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_throw() const override
Throws this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
RegistryNotExistException(const RegistryNotExistException &) noexcept=default
Copy constructor.
std::string name
The registry name.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
RegistryNotExistException() noexcept=default
Default constructor.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_throw() const override
Throws this exception.
RegistryUnreachableException() noexcept=default
Default constructor.
RegistryUnreachableException(const RegistryUnreachableException &) noexcept=default
Copy constructor.
std::string name
The name of the registry that is not reachable.
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string reason
The reason why the registry couldn't be reached.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
void ice_throw() const override
Throws this exception.
ServerNotExistException(const ServerNotExistException &) noexcept=default
Copy constructor.
ServerNotExistException() noexcept=default
Default constructor.
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
ServerStartException() noexcept=default
Default constructor.
ServerStartException(const ServerStartException &) noexcept=default
Copy constructor.
std::string reason
The reason for the failure.
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
ServerStopException() noexcept=default
Default constructor.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
void ice_throw() const override
Throws this exception.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
std::string reason
The reason for the failure.
ServerStopException(const ServerStopException &) noexcept=default
Copy constructor.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string name
The id of the server that is not reachable.
const char * ice_id() const noexcept override
Returns the type ID of this exception.
static const char * ice_staticId() noexcept
Gets the type ID of the associated Slice exception.
ServerUnreachableException(const ServerUnreachableException &) noexcept=default
Copy constructor.
ServerUnreachableException() noexcept=default
Default constructor.
void ice_throw() const override
Throws this exception.
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
void ice_printFields(std::ostream &os) const override
Outputs the name and value of each field of this instance, including inherited fields,...
std::string reason
The reason why the server couldn't be reached.
Abstract base class for all Ice exceptions defined in Slice.
Deploy and manage Ice servers.