Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Exception.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0-alpha.0
4// <auto-generated>Generated from Slice file 'Exception.ice'.</auto-generated>
5// clang-format off
6
7#ifndef IceGrid_Exception_h_
8#define IceGrid_Exception_h_
9
11#include <Ice/Ice.h>
12#include <Ice/BuiltinSequences.h>
13#include <Ice/Identity.h>
14#include <IceGrid/Config.h>
15
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
19# endif
20#endif
21
22#ifndef ICEGRID_API
23# if defined(ICEGRID_API_EXPORTS)
24# define ICEGRID_API ICE_DECLSPEC_EXPORT
25# else
26# define ICEGRID_API ICE_DECLSPEC_IMPORT
27# endif
28#endif
29
30// NOLINTBEGIN(modernize-concat-nested-namespaces)
31
32namespace IceGrid
33{
34}
35
36namespace IceGrid
37{
38 /// The exception that is thrown when IceGrid does not know an application with the provided name.
39 /// @headerfile IceGrid/IceGrid.h
41 {
42 public:
43 /// Default constructor.
44 ApplicationNotExistException() noexcept = default;
45
46 /// One-shot constructor to initialize all data members.
47 /// @param name The name of the application.
48 ApplicationNotExistException(std::string name) noexcept :
49 name(std::move(name))
50 {
51 }
52
53 /// Copy constructor.
55
56 /// Creates a tuple with all the fields of this exception.
57 /// @return A tuple with all the fields of this exception.
58 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
59 {
60 return std::tie(name);
61 }
62
63 void ice_printFields(std::ostream& os) const override;
64 /// Gets the type ID of the associated Slice exception.
65 /// @return The string `"::IceGrid::ApplicationNotExistException"`.
66 static const char* ice_staticId() noexcept;
67
68 [[nodiscard]] const char* ice_id() const noexcept override;
69
70 void ice_throw() const override;
71
72 /// The name of the application.
73 std::string name;
74
75 protected:
76 /// @private
77 void _writeImpl(Ice::OutputStream*) const override;
78
79 /// @private
80 void _readImpl(Ice::InputStream*) override;
81 };
82
83 /// The exception that is thrown when IceGrid does not know a server with the provided server ID.
84 /// @headerfile IceGrid/IceGrid.h
85 class ICEGRID_API ServerNotExistException : public Ice::UserException
86 {
87 public:
88 /// Default constructor.
89 ServerNotExistException() noexcept = default;
90
91 /// One-shot constructor to initialize all data members.
92 /// @param id The server ID.
93 ServerNotExistException(std::string id) noexcept :
94 id(std::move(id))
95 {
96 }
97
98 /// Copy constructor.
100
101 /// Creates a tuple with all the fields of this exception.
102 /// @return A tuple with all the fields of this exception.
103 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
104 {
105 return std::tie(id);
106 }
107
108 void ice_printFields(std::ostream& os) const override;
109 /// Gets the type ID of the associated Slice exception.
110 /// @return The string `"::IceGrid::ServerNotExistException"`.
111 static const char* ice_staticId() noexcept;
112
113 [[nodiscard]] const char* ice_id() const noexcept override;
114
115 void ice_throw() const override;
116
117 /// The server ID.
118 std::string id;
119
120 protected:
121 /// @private
122 void _writeImpl(Ice::OutputStream*) const override;
123
124 /// @private
125 void _readImpl(Ice::InputStream*) override;
126 };
127
128 /// The exception that is thrown when a server failed to start.
129 /// @headerfile IceGrid/IceGrid.h
130 class ICEGRID_API ServerStartException : public Ice::UserException
131 {
132 public:
133 /// Default constructor.
134 ServerStartException() noexcept = default;
135
136 /// One-shot constructor to initialize all data members.
137 /// @param id The server ID.
138 /// @param reason The reason for the failure.
139 ServerStartException(std::string id, std::string reason) noexcept :
140 id(std::move(id)),
141 reason(std::move(reason))
142 {
143 }
144
145 /// Copy constructor.
146 ServerStartException(const ServerStartException&) noexcept = default;
147
148 /// Creates a tuple with all the fields of this exception.
149 /// @return A tuple with all the fields of this exception.
150 [[nodiscard]] std::tuple<const std::string&, const std::string&> ice_tuple() const
151 {
152 return std::tie(id, reason);
153 }
154
155 void ice_printFields(std::ostream& os) const override;
156 /// Gets the type ID of the associated Slice exception.
157 /// @return The string `"::IceGrid::ServerStartException"`.
158 static const char* ice_staticId() noexcept;
159
160 [[nodiscard]] const char* ice_id() const noexcept override;
161
162 void ice_throw() const override;
163
164 /// The server ID.
165 std::string id;
166
167 /// The reason for the failure.
168 std::string reason;
169
170 protected:
171 /// @private
172 void _writeImpl(Ice::OutputStream*) const override;
173
174 /// @private
175 void _readImpl(Ice::InputStream*) override;
176 };
177
178 /// The exception that is thrown when a server failed to stop.
179 /// @headerfile IceGrid/IceGrid.h
180 class ICEGRID_API ServerStopException : public Ice::UserException
181 {
182 public:
183 /// Default constructor.
184 ServerStopException() noexcept = default;
185
186 /// One-shot constructor to initialize all data members.
187 /// @param id The server ID.
188 /// @param reason The reason for the failure.
189 ServerStopException(std::string id, std::string reason) noexcept :
190 id(std::move(id)),
191 reason(std::move(reason))
192 {
193 }
194
195 /// Copy constructor.
196 ServerStopException(const ServerStopException&) noexcept = default;
197
198 /// Creates a tuple with all the fields of this exception.
199 /// @return A tuple with all the fields of this exception.
200 [[nodiscard]] std::tuple<const std::string&, const std::string&> ice_tuple() const
201 {
202 return std::tie(id, reason);
203 }
204
205 void ice_printFields(std::ostream& os) const override;
206 /// Gets the type ID of the associated Slice exception.
207 /// @return The string `"::IceGrid::ServerStopException"`.
208 static const char* ice_staticId() noexcept;
209
210 [[nodiscard]] const char* ice_id() const noexcept override;
211
212 void ice_throw() const override;
213
214 /// The server ID.
215 std::string id;
216
217 /// The reason for the failure.
218 std::string reason;
219
220 protected:
221 /// @private
222 void _writeImpl(Ice::OutputStream*) const override;
223
224 /// @private
225 void _readImpl(Ice::InputStream*) override;
226 };
227
228 /// The exception that is thrown when IceGrid does not know an object adapter with the provided adapter ID.
229 /// @headerfile IceGrid/IceGrid.h
230 class ICEGRID_API AdapterNotExistException : public Ice::UserException
231 {
232 public:
233 /// Default constructor.
234 AdapterNotExistException() noexcept = default;
235
236 /// One-shot constructor to initialize all data members.
237 /// @param id The adapter ID.
238 AdapterNotExistException(std::string id) noexcept :
239 id(std::move(id))
240 {
241 }
242
243 /// Copy constructor.
245
246 /// Creates a tuple with all the fields of this exception.
247 /// @return A tuple with all the fields of this exception.
248 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
249 {
250 return std::tie(id);
251 }
252
253 void ice_printFields(std::ostream& os) const override;
254 /// Gets the type ID of the associated Slice exception.
255 /// @return The string `"::IceGrid::AdapterNotExistException"`.
256 static const char* ice_staticId() noexcept;
257
258 [[nodiscard]] const char* ice_id() const noexcept override;
259
260 void ice_throw() const override;
261
262 /// The adapter ID.
263 std::string id;
264
265 protected:
266 /// @private
267 void _writeImpl(Ice::OutputStream*) const override;
268
269 /// @private
270 void _readImpl(Ice::InputStream*) override;
271 };
272
273 /// The exception that is thrown when a well-known object is already registered.
274 /// @headerfile IceGrid/IceGrid.h
275 class ICEGRID_API ObjectExistsException : public Ice::UserException
276 {
277 public:
278 /// Default constructor.
279 ObjectExistsException() noexcept = default;
280
281 /// One-shot constructor to initialize all data members.
282 /// @param id The identity of the object.
283 ObjectExistsException(::Ice::Identity id) noexcept :
284 id(std::move(id))
285 {
286 }
287
288 /// Copy constructor.
290
291 /// Creates a tuple with all the fields of this exception.
292 /// @return A tuple with all the fields of this exception.
293 [[nodiscard]] std::tuple<const ::Ice::Identity&> ice_tuple() const
294 {
295 return std::tie(id);
296 }
297
298 void ice_printFields(std::ostream& os) const override;
299 /// Gets the type ID of the associated Slice exception.
300 /// @return The string `"::IceGrid::ObjectExistsException"`.
301 static const char* ice_staticId() noexcept;
302
303 [[nodiscard]] const char* ice_id() const noexcept override;
304
305 void ice_throw() const override;
306
307 /// The identity of the object.
308 ::Ice::Identity id;
309
310 protected:
311 /// @private
312 void _writeImpl(Ice::OutputStream*) const override;
313
314 /// @private
315 void _readImpl(Ice::InputStream*) override;
316 };
317
318 /// The exception that is thrown when a well-known object is not registered.
319 /// @headerfile IceGrid/IceGrid.h
320 class ICEGRID_API ObjectNotRegisteredException : public Ice::UserException
321 {
322 public:
323 /// Default constructor.
324 ObjectNotRegisteredException() noexcept = default;
325
326 /// One-shot constructor to initialize all data members.
327 /// @param id The identity of the object.
328 ObjectNotRegisteredException(::Ice::Identity id) noexcept :
329 id(std::move(id))
330 {
331 }
332
333 /// Copy constructor.
335
336 /// Creates a tuple with all the fields of this exception.
337 /// @return A tuple with all the fields of this exception.
338 [[nodiscard]] std::tuple<const ::Ice::Identity&> ice_tuple() const
339 {
340 return std::tie(id);
341 }
342
343 void ice_printFields(std::ostream& os) const override;
344 /// Gets the type ID of the associated Slice exception.
345 /// @return The string `"::IceGrid::ObjectNotRegisteredException"`.
346 static const char* ice_staticId() noexcept;
347
348 [[nodiscard]] const char* ice_id() const noexcept override;
349
350 void ice_throw() const override;
351
352 /// The identity of the object.
353 ::Ice::Identity id;
354
355 protected:
356 /// @private
357 void _writeImpl(Ice::OutputStream*) const override;
358
359 /// @private
360 void _readImpl(Ice::InputStream*) override;
361 };
362
363 /// The exception that is thrown when IceGrid does not know a node with the provided name.
364 /// @headerfile IceGrid/IceGrid.h
365 class ICEGRID_API NodeNotExistException : public Ice::UserException
366 {
367 public:
368 /// Default constructor.
369 NodeNotExistException() noexcept = default;
370
371 /// One-shot constructor to initialize all data members.
372 /// @param name The node name.
373 NodeNotExistException(std::string name) noexcept :
374 name(std::move(name))
375 {
376 }
377
378 /// Copy constructor.
380
381 /// Creates a tuple with all the fields of this exception.
382 /// @return A tuple with all the fields of this exception.
383 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
384 {
385 return std::tie(name);
386 }
387
388 void ice_printFields(std::ostream& os) const override;
389 /// Gets the type ID of the associated Slice exception.
390 /// @return The string `"::IceGrid::NodeNotExistException"`.
391 static const char* ice_staticId() noexcept;
392
393 [[nodiscard]] const char* ice_id() const noexcept override;
394
395 void ice_throw() const override;
396
397 /// The node name.
398 std::string name;
399
400 protected:
401 /// @private
402 void _writeImpl(Ice::OutputStream*) const override;
403
404 /// @private
405 void _readImpl(Ice::InputStream*) override;
406 };
407
408 /// The exception that is thrown when IceGrid does not know a registry with the provided name.
409 /// @headerfile IceGrid/IceGrid.h
410 class ICEGRID_API RegistryNotExistException : public Ice::UserException
411 {
412 public:
413 /// Default constructor.
414 RegistryNotExistException() noexcept = default;
415
416 /// One-shot constructor to initialize all data members.
417 /// @param name The registry name.
418 RegistryNotExistException(std::string name) noexcept :
419 name(std::move(name))
420 {
421 }
422
423 /// Copy constructor.
425
426 /// Creates a tuple with all the fields of this exception.
427 /// @return A tuple with all the fields of this exception.
428 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
429 {
430 return std::tie(name);
431 }
432
433 void ice_printFields(std::ostream& os) const override;
434 /// Gets the type ID of the associated Slice exception.
435 /// @return The string `"::IceGrid::RegistryNotExistException"`.
436 static const char* ice_staticId() noexcept;
437
438 [[nodiscard]] const char* ice_id() const noexcept override;
439
440 void ice_throw() const override;
441
442 /// The registry name.
443 std::string name;
444
445 protected:
446 /// @private
447 void _writeImpl(Ice::OutputStream*) const override;
448
449 /// @private
450 void _readImpl(Ice::InputStream*) override;
451 };
452
453 /// The exception that is thrown when IceGrid cannot deploy a server.
454 /// @headerfile IceGrid/IceGrid.h
455 class ICEGRID_API DeploymentException : public Ice::UserException
456 {
457 public:
458 /// Default constructor.
459 DeploymentException() noexcept = default;
460
461 /// One-shot constructor to initialize all data members.
462 /// @param reason The reason for the failure.
463 DeploymentException(std::string reason) noexcept :
464 reason(std::move(reason))
465 {
466 }
467
468 /// Copy constructor.
469 DeploymentException(const DeploymentException&) noexcept = default;
470
471 /// Creates a tuple with all the fields of this exception.
472 /// @return A tuple with all the fields of this exception.
473 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
474 {
475 return std::tie(reason);
476 }
477
478 void ice_printFields(std::ostream& os) const override;
479 /// Gets the type ID of the associated Slice exception.
480 /// @return The string `"::IceGrid::DeploymentException"`.
481 static const char* ice_staticId() noexcept;
482
483 [[nodiscard]] const char* ice_id() const noexcept override;
484
485 void ice_throw() const override;
486
487 /// The reason for the failure.
488 std::string reason;
489
490 protected:
491 /// @private
492 void _writeImpl(Ice::OutputStream*) const override;
493
494 /// @private
495 void _readImpl(Ice::InputStream*) override;
496 };
497
498 /// The exception that is thrown when IceGrid cannot reach a node.
499 /// @headerfile IceGrid/IceGrid.h
500 class ICEGRID_API NodeUnreachableException : public Ice::UserException
501 {
502 public:
503 /// Default constructor.
504 NodeUnreachableException() noexcept = default;
505
506 /// One-shot constructor to initialize all data members.
507 /// @param name The name of the node that is not reachable.
508 /// @param reason The reason why the node couldn't be reached.
509 NodeUnreachableException(std::string name, std::string reason) noexcept :
510 name(std::move(name)),
511 reason(std::move(reason))
512 {
513 }
514
515 /// Copy constructor.
517
518 /// Creates a tuple with all the fields of this exception.
519 /// @return A tuple with all the fields of this exception.
520 [[nodiscard]] std::tuple<const std::string&, const std::string&> ice_tuple() const
521 {
522 return std::tie(name, reason);
523 }
524
525 void ice_printFields(std::ostream& os) const override;
526 /// Gets the type ID of the associated Slice exception.
527 /// @return The string `"::IceGrid::NodeUnreachableException"`.
528 static const char* ice_staticId() noexcept;
529
530 [[nodiscard]] const char* ice_id() const noexcept override;
531
532 void ice_throw() const override;
533
534 /// The name of the node that is not reachable.
535 std::string name;
536
537 /// The reason why the node couldn't be reached.
538 std::string reason;
539
540 protected:
541 /// @private
542 void _writeImpl(Ice::OutputStream*) const override;
543
544 /// @private
545 void _readImpl(Ice::InputStream*) override;
546 };
547
548 /// The exception that is thrown when IceGrid cannot reach a server.
549 /// @headerfile IceGrid/IceGrid.h
550 class ICEGRID_API ServerUnreachableException : public Ice::UserException
551 {
552 public:
553 /// Default constructor.
554 ServerUnreachableException() noexcept = default;
555
556 /// One-shot constructor to initialize all data members.
557 /// @param name The id of the server that is not reachable.
558 /// @param reason The reason why the server couldn't be reached.
559 ServerUnreachableException(std::string name, std::string reason) noexcept :
560 name(std::move(name)),
561 reason(std::move(reason))
562 {
563 }
564
565 /// Copy constructor.
567
568 /// Creates a tuple with all the fields of this exception.
569 /// @return A tuple with all the fields of this exception.
570 [[nodiscard]] std::tuple<const std::string&, const std::string&> ice_tuple() const
571 {
572 return std::tie(name, reason);
573 }
574
575 void ice_printFields(std::ostream& os) const override;
576 /// Gets the type ID of the associated Slice exception.
577 /// @return The string `"::IceGrid::ServerUnreachableException"`.
578 static const char* ice_staticId() noexcept;
579
580 [[nodiscard]] const char* ice_id() const noexcept override;
581
582 void ice_throw() const override;
583
584 /// The id of the server that is not reachable.
585 std::string name;
586
587 /// The reason why the server couldn't be reached.
588 std::string reason;
589
590 protected:
591 /// @private
592 void _writeImpl(Ice::OutputStream*) const override;
593
594 /// @private
595 void _readImpl(Ice::InputStream*) override;
596 };
597
598 /// The exception that is thrown when IceGrid cannot reach a registry.
599 /// @headerfile IceGrid/IceGrid.h
600 class ICEGRID_API RegistryUnreachableException : public Ice::UserException
601 {
602 public:
603 /// Default constructor.
604 RegistryUnreachableException() noexcept = default;
605
606 /// One-shot constructor to initialize all data members.
607 /// @param name The name of the registry that is not reachable.
608 /// @param reason The reason why the registry couldn't be reached.
609 RegistryUnreachableException(std::string name, std::string reason) noexcept :
610 name(std::move(name)),
611 reason(std::move(reason))
612 {
613 }
614
615 /// Copy constructor.
617
618 /// Creates a tuple with all the fields of this exception.
619 /// @return A tuple with all the fields of this exception.
620 [[nodiscard]] std::tuple<const std::string&, const std::string&> ice_tuple() const
621 {
622 return std::tie(name, reason);
623 }
624
625 void ice_printFields(std::ostream& os) const override;
626 /// Gets the type ID of the associated Slice exception.
627 /// @return The string `"::IceGrid::RegistryUnreachableException"`.
628 static const char* ice_staticId() noexcept;
629
630 [[nodiscard]] const char* ice_id() const noexcept override;
631
632 void ice_throw() const override;
633
634 /// The name of the registry that is not reachable.
635 std::string name;
636
637 /// The reason why the registry couldn't be reached.
638 std::string reason;
639
640 protected:
641 /// @private
642 void _writeImpl(Ice::OutputStream*) const override;
643
644 /// @private
645 void _readImpl(Ice::InputStream*) override;
646 };
647
648 /// The exception that is thrown when an unknown signal is sent to a server.
649 /// @headerfile IceGrid/IceGrid.h
650 class ICEGRID_API BadSignalException : public Ice::UserException
651 {
652 public:
653 /// Default constructor.
654 BadSignalException() noexcept = default;
655
656 /// One-shot constructor to initialize all data members.
657 /// @param reason The details of the unknown signal.
658 BadSignalException(std::string reason) noexcept :
659 reason(std::move(reason))
660 {
661 }
662
663 /// Copy constructor.
664 BadSignalException(const BadSignalException&) noexcept = default;
665
666 /// Creates a tuple with all the fields of this exception.
667 /// @return A tuple with all the fields of this exception.
668 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
669 {
670 return std::tie(reason);
671 }
672
673 void ice_printFields(std::ostream& os) const override;
674 /// Gets the type ID of the associated Slice exception.
675 /// @return The string `"::IceGrid::BadSignalException"`.
676 static const char* ice_staticId() noexcept;
677
678 [[nodiscard]] const char* ice_id() const noexcept override;
679
680 void ice_throw() const override;
681
682 /// The details of the unknown signal.
683 std::string reason;
684
685 protected:
686 /// @private
687 void _writeImpl(Ice::OutputStream*) const override;
688
689 /// @private
690 void _readImpl(Ice::InputStream*) override;
691 };
692
693 /// The exception that is thrown when the registry update lock cannot be acquired.
694 /// @headerfile IceGrid/IceGrid.h
695 class ICEGRID_API AccessDeniedException : public Ice::UserException
696 {
697 public:
698 /// Default constructor.
699 AccessDeniedException() noexcept = default;
700
701 /// One-shot constructor to initialize all data members.
702 /// @param lockUserId The id of the user holding the lock (if any).
703 AccessDeniedException(std::string lockUserId) noexcept :
704 lockUserId(std::move(lockUserId))
705 {
706 }
707
708 /// Copy constructor.
710
711 /// Creates a tuple with all the fields of this exception.
712 /// @return A tuple with all the fields of this exception.
713 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
714 {
715 return std::tie(lockUserId);
716 }
717
718 void ice_printFields(std::ostream& os) const override;
719 /// Gets the type ID of the associated Slice exception.
720 /// @return The string `"::IceGrid::AccessDeniedException"`.
721 static const char* ice_staticId() noexcept;
722
723 [[nodiscard]] const char* ice_id() const noexcept override;
724
725 void ice_throw() const override;
726
727 /// The id of the user holding the lock (if any).
728 std::string lockUserId;
729
730 protected:
731 /// @private
732 void _writeImpl(Ice::OutputStream*) const override;
733
734 /// @private
735 void _readImpl(Ice::InputStream*) override;
736 };
737
738 /// The exception that is thrown when the allocation of an object failed.
739 /// @headerfile IceGrid/IceGrid.h
740 class ICEGRID_API AllocationException : public Ice::UserException
741 {
742 public:
743 /// Default constructor.
744 AllocationException() noexcept = default;
745
746 /// One-shot constructor to initialize all data members.
747 /// @param reason The reason why the object couldn't be allocated.
748 AllocationException(std::string reason) noexcept :
749 reason(std::move(reason))
750 {
751 }
752
753 /// Copy constructor.
754 AllocationException(const AllocationException&) noexcept = default;
755
756 /// Creates a tuple with all the fields of this exception.
757 /// @return A tuple with all the fields of this exception.
758 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
759 {
760 return std::tie(reason);
761 }
762
763 void ice_printFields(std::ostream& os) const override;
764 /// Gets the type ID of the associated Slice exception.
765 /// @return The string `"::IceGrid::AllocationException"`.
766 static const char* ice_staticId() noexcept;
767
768 [[nodiscard]] const char* ice_id() const noexcept override;
769
770 void ice_throw() const override;
771
772 /// The reason why the object couldn't be allocated.
773 std::string reason;
774
775 protected:
776 /// @private
777 void _writeImpl(Ice::OutputStream*) const override;
778
779 /// @private
780 void _readImpl(Ice::InputStream*) override;
781 };
782
783 /// The exception that is thrown when the request to allocate an object times out.
784 /// @headerfile IceGrid/IceGrid.h
786 {
787 public:
789
790 /// Gets the type ID of the associated Slice exception.
791 /// @return The string `"::IceGrid::AllocationTimeoutException"`.
792 static const char* ice_staticId() noexcept;
793
794 [[nodiscard]] const char* ice_id() const noexcept override;
795
796 void ice_throw() const override;
797
798 protected:
799 /// @private
800 void _writeImpl(Ice::OutputStream*) const override;
801
802 /// @private
803 void _readImpl(Ice::InputStream*) override;
804 };
805
806 /// The exception that is thrown when a client is not allowed to create a session.
807 /// @headerfile IceGrid/IceGrid.h
808 class ICEGRID_API PermissionDeniedException : public Ice::UserException
809 {
810 public:
811 /// Default constructor.
812 PermissionDeniedException() noexcept = default;
813
814 /// One-shot constructor to initialize all data members.
815 /// @param reason The reason why permission was denied.
816 PermissionDeniedException(std::string reason) noexcept :
817 reason(std::move(reason))
818 {
819 }
820
821 /// Copy constructor.
823
824 /// Creates a tuple with all the fields of this exception.
825 /// @return A tuple with all the fields of this exception.
826 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
827 {
828 return std::tie(reason);
829 }
830
831 void ice_printFields(std::ostream& os) const override;
832 /// Gets the type ID of the associated Slice exception.
833 /// @return The string `"::IceGrid::PermissionDeniedException"`.
834 static const char* ice_staticId() noexcept;
835
836 [[nodiscard]] const char* ice_id() const noexcept override;
837
838 void ice_throw() const override;
839
840 /// The reason why permission was denied.
841 std::string reason;
842
843 protected:
844 /// @private
845 void _writeImpl(Ice::OutputStream*) const override;
846
847 /// @private
848 void _readImpl(Ice::InputStream*) override;
849 };
850
851 /// The exception that is thrown when an observer is already registered with the registry.
852 /// @see AdminSession#setObservers
853 /// @see AdminSession#setObserversByIdentity
854 /// @headerfile IceGrid/IceGrid.h
855 class ICEGRID_API ObserverAlreadyRegisteredException : public Ice::UserException
856 {
857 public:
858 /// Default constructor.
860
861 /// One-shot constructor to initialize all data members.
862 /// @param id The identity of the observer.
863 ObserverAlreadyRegisteredException(::Ice::Identity id) noexcept :
864 id(std::move(id))
865 {
866 }
867
868 /// Copy constructor.
870
871 /// Creates a tuple with all the fields of this exception.
872 /// @return A tuple with all the fields of this exception.
873 [[nodiscard]] std::tuple<const ::Ice::Identity&> ice_tuple() const
874 {
875 return std::tie(id);
876 }
877
878 void ice_printFields(std::ostream& os) const override;
879 /// Gets the type ID of the associated Slice exception.
880 /// @return The string `"::IceGrid::ObserverAlreadyRegisteredException"`.
881 static const char* ice_staticId() noexcept;
882
883 [[nodiscard]] const char* ice_id() const noexcept override;
884
885 void ice_throw() const override;
886
887 /// The identity of the observer.
888 ::Ice::Identity id;
889
890 protected:
891 /// @private
892 void _writeImpl(Ice::OutputStream*) const override;
893
894 /// @private
895 void _readImpl(Ice::InputStream*) override;
896 };
897
898 /// The exception that is thrown when a log file is not available.
899 /// @see AdminSession#openServerStdOut
900 /// @see AdminSession#openServerStdErr
901 /// @see AdminSession#openNodeStdOut
902 /// @see AdminSession#openNodeStdErr
903 /// @see AdminSession#openRegistryStdOut
904 /// @see AdminSession#openRegistryStdErr
905 /// @headerfile IceGrid/IceGrid.h
906 class ICEGRID_API FileNotAvailableException : public Ice::UserException
907 {
908 public:
909 /// Default constructor.
910 FileNotAvailableException() noexcept = default;
911
912 /// One-shot constructor to initialize all data members.
913 /// @param reason The reason for the failure.
914 FileNotAvailableException(std::string reason) noexcept :
915 reason(std::move(reason))
916 {
917 }
918
919 /// Copy constructor.
921
922 /// Creates a tuple with all the fields of this exception.
923 /// @return A tuple with all the fields of this exception.
924 [[nodiscard]] std::tuple<const std::string&> ice_tuple() const
925 {
926 return std::tie(reason);
927 }
928
929 void ice_printFields(std::ostream& os) const override;
930 /// Gets the type ID of the associated Slice exception.
931 /// @return The string `"::IceGrid::FileNotAvailableException"`.
932 static const char* ice_staticId() noexcept;
933
934 [[nodiscard]] const char* ice_id() const noexcept override;
935
936 void ice_throw() const override;
937
938 /// The reason for the failure.
939 std::string reason;
940
941 protected:
942 /// @private
943 void _writeImpl(Ice::OutputStream*) const override;
944
945 /// @private
946 void _readImpl(Ice::InputStream*) override;
947 };
948}
949
950// NOLINTEND(modernize-concat-nested-namespaces)
951
952#include <Ice/PopDisableWarnings.h>
953#endif
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).
Definition Exception.h:728
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.
Definition Exception.h:713
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.
Definition Exception.h:248
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.
Definition Exception.h:758
std::string reason
The reason why the object couldn't be allocated.
Definition Exception.h:773
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.
Definition Exception.h:786
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.
Definition Exception.h:73
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
Definition Exception.h:58
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.
Definition Exception.h:683
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
Definition Exception.h:668
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.
Definition Exception.h:488
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.
Definition Exception.h:473
std::string reason
The reason for the failure.
Definition Exception.h:939
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.
Definition Exception.h:924
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.
Definition Exception.h:383
std::string name
The node name.
Definition Exception.h:398
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.
Definition Exception.h:535
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.
Definition Exception.h:538
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.
Definition Exception.h:520
std::tuple< const ::Ice::Identity & > ice_tuple() const
Creates a tuple with all the fields of this exception.
Definition Exception.h:293
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.
Definition Exception.h:338
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.
Definition Exception.h:873
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.
Definition Exception.h:841
std::tuple< const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
Definition Exception.h:826
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.
Definition Exception.h:443
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.
Definition Exception.h:428
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.
Definition Exception.h:635
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
Definition Exception.h:620
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.
Definition Exception.h:638
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.
Definition Exception.h:103
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.
Definition Exception.h:168
std::tuple< const std::string &, const std::string & > ice_tuple() const
Creates a tuple with all the fields of this exception.
Definition Exception.h:150
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.
Definition Exception.h:200
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.
Definition Exception.h:218
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.
Definition Exception.h:585
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.
Definition Exception.h:570
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.
Definition Exception.h:588
Abstract base class for all Ice exceptions defined in Slice.
Deploy and manage Ice servers.
Definition Admin.h:34
The Ice RPC framework.
Definition SampleEvent.h:59