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 != 30850
17# error Ice version mismatch: an exact match is required for beta generated code
22# if defined(ICEGRID_API_EXPORTS)
23# define ICEGRID_API ICE_DECLSPEC_EXPORT
25# 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;
104 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
114 [[nodiscard]] const
char*
ice_id() const noexcept override;
123 void _writeImpl(
Ice::OutputStream*) const override;
126 void _readImpl(
Ice::InputStream*) override;
152 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
154 return std::tie(
id,
reason);
162 [[nodiscard]] const
char*
ice_id() const noexcept override;
174 void _writeImpl(
Ice::OutputStream*) const override;
177 void _readImpl(
Ice::InputStream*) override;
203 [[nodiscard]] std::tuple<const std::string&, const std::string&>
ice_tuple()
const
205 return std::tie(
id,
reason);
213 [[nodiscard]] const
char*
ice_id() const noexcept override;
225 void _writeImpl(
Ice::OutputStream*) const override;
228 void _readImpl(
Ice::InputStream*) override;
252 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
262 [[nodiscard]] const
char*
ice_id() const noexcept override;
271 void _writeImpl(
Ice::OutputStream*) const override;
274 void _readImpl(
Ice::InputStream*) override;
298 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
300 return std::tie(
name);
308 [[nodiscard]] const
char*
ice_id() const noexcept override;
317 void _writeImpl(
Ice::OutputStream*) const override;
320 void _readImpl(
Ice::InputStream*) override;
344 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
346 return std::tie(
name);
354 [[nodiscard]] const
char*
ice_id() const noexcept override;
363 void _writeImpl(
Ice::OutputStream*) const override;
366 void _readImpl(
Ice::InputStream*) override;
390 [[nodiscard]] std::tuple<const std::string&>
ice_tuple()
const
400 [[nodiscard]] const
char*
ice_id() const noexcept override;
409 void _writeImpl(
Ice::OutputStream*) const override;
412 void _readImpl(
Ice::InputStream*) override;
427 [[nodiscard]] const
char*
ice_id() const noexcept override;
433 void _writeImpl(
Ice::OutputStream*) const override;
436 void _readImpl(
Ice::InputStream*) override;
460 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
470 [[nodiscard]] const
char*
ice_id() const noexcept override;
479 void _writeImpl(
Ice::OutputStream*) const override;
482 void _readImpl(
Ice::InputStream*) override;
506 [[nodiscard]] std::tuple<const ::Ice::Identity&>
ice_tuple()
const
516 [[nodiscard]] const
char*
ice_id() const noexcept override;
525 void _writeImpl(
Ice::OutputStream*) const override;
528 void _readImpl(
Ice::InputStream*) override;
534#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.