7#ifndef IceGrid_Exception_h_
8#define IceGrid_Exception_h_
12#include <Ice/Identity.h>
13#include <IceGrid/Config.h>
15#ifndef ICE_DISABLE_VERSION
16# if ICE_INT_VERSION / 100 != 308
17# error Ice version mismatch!
19# if ICE_INT_VERSION % 100 >= 50
20# error Beta header file detected
22# if ICE_INT_VERSION % 100 < 0
23# error Ice patch level mismatch!
28# if defined(ICEGRID_API_EXPORTS)
29# define ICEGRID_API ICE_DECLSPEC_EXPORT
31# define ICEGRID_API ICE_DECLSPEC_IMPORT
64 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
66 return std::tie(
name);
74 [[nodiscard]] const
char*
ice_id() const noexcept override;
83 void _writeImpl(
Ice::OutputStream*) const override;
86 void _readImpl(
Ice::InputStream*) override;
110 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
120 [[nodiscard]] const
char*
ice_id() const noexcept override;
129 void _writeImpl(
Ice::OutputStream*) const override;
132 void _readImpl(
Ice::InputStream*) override;
158 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
160 return std::tie(
id,
reason);
168 [[nodiscard]] const
char*
ice_id() const noexcept override;
180 void _writeImpl(
Ice::OutputStream*) const override;
183 void _readImpl(
Ice::InputStream*) override;
209 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
211 return std::tie(
id,
reason);
219 [[nodiscard]] const
char*
ice_id() const noexcept override;
231 void _writeImpl(
Ice::OutputStream*) const override;
234 void _readImpl(
Ice::InputStream*) override;
258 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
268 [[nodiscard]] const
char*
ice_id() const noexcept override;
277 void _writeImpl(
Ice::OutputStream*) const override;
280 void _readImpl(
Ice::InputStream*) override;
304 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
306 return std::tie(
name);
314 [[nodiscard]] const
char*
ice_id() const noexcept override;
323 void _writeImpl(
Ice::OutputStream*) const override;
326 void _readImpl(
Ice::InputStream*) override;
350 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
352 return std::tie(
name);
360 [[nodiscard]] const
char*
ice_id() const noexcept override;
369 void _writeImpl(
Ice::OutputStream*) const override;
372 void _readImpl(
Ice::InputStream*) override;
396 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
406 [[nodiscard]] const
char*
ice_id() const noexcept override;
415 void _writeImpl(
Ice::OutputStream*) const override;
418 void _readImpl(
Ice::InputStream*) override;
433 [[nodiscard]] const
char*
ice_id() const noexcept override;
439 void _writeImpl(
Ice::OutputStream*) const override;
442 void _readImpl(
Ice::InputStream*) override;
466 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
476 [[nodiscard]] const
char*
ice_id() const noexcept override;
485 void _writeImpl(
Ice::OutputStream*) const override;
488 void _readImpl(
Ice::InputStream*) override;
512 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
522 [[nodiscard]] const
char*
ice_id() const noexcept override;
531 void _writeImpl(
Ice::OutputStream*) const override;
534 void _readImpl(
Ice::InputStream*) override;
540#include <Ice/PopDisableWarnings.h>
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.
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::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.
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.
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,...
Abstract base class for all exceptions defined in Slice.
Deploy and manage Ice servers.