Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
ReplyStatus.h
1// Copyright (c) ZeroC, Inc.
2
3// slice2cpp version 3.8.0-alpha.0
4// <auto-generated>Generated from Slice file 'ReplyStatus.ice'.</auto-generated>
5// clang-format off
6
7#ifndef Ice_ReplyStatus_h_
8#define Ice_ReplyStatus_h_
9
11#include <Ice/Config.h>
12#include <Ice/StreamHelpers.h>
13
14#ifndef ICE_DISABLE_VERSION
15# if ICE_INT_VERSION != 30850
16# error Ice version mismatch: an exact match is required for beta generated code
17# endif
18#endif
19
20// NOLINTBEGIN(modernize-concat-nested-namespaces)
21
22namespace Ice
23{
24 /// Represents the status of a reply.
25 /// A reply status can have any value in the range 0..255. Do not use this enum to marshal or unmarshal a reply
26 /// status unless you know its value corresponds to one of the enumerators defined below.
27 enum class ReplyStatus : std::uint8_t
28 {
29 /// The dispatch completed successfully.
30 Ok = 0,
31
32 /// The dispatch completed with a Slice user exception.
34
35 /// The dispatch could not find an implementation for the target object.
37
38 /// The dispatch found an implementation for the target object but could not find the requested facet.
40
41 /// The dispatch found an implementation for the target object but could not find the requested operation.
43
44 /// The dispatch failed with an Ice local exception.
46
47 /// The dispatch failed with a Slice user exception that does not conform to the exception specification of
48 /// the operation.
50
51 /// The dispatch failed with some other exception (neither an Ice local exception nor a Slice user exception).
53
54 /// The dispatch failed because the request payload could not be unmarshaled. It is typically due to a mismatch
55 /// in the Slice definitions used by the client and the server.
57
58 /// The caller is not authorized to access the requested resource.
60 };
61
62 /// Outputs the enumerator name or underlying value of a ReplyStatus to a stream.
63 /// @param os The output stream.
64 /// @param value The value to output.
65 /// @return The output stream.
66 ICE_API std::ostream& operator<<(std::ostream& os, ReplyStatus value);
67}
68
69namespace Ice
70{
71 /// @cond INTERNAL
72 template<>
73 struct StreamableTraits<::Ice::ReplyStatus>
74 {
76 static constexpr int minValue = 0;
77 static constexpr int maxValue = 9;
78 static constexpr int minWireSize = 1;
79 static constexpr bool fixedLength = false;
80 };
81 /// @endcond
82}
83
84// NOLINTEND(modernize-concat-nested-namespaces)
85
87#endif
The exception that is thrown when a dispatch failed with an exception that is not a LocalException or...
The exception that is thrown when a dispatch failed with a LocalException that is not a DispatchExcep...
The exception that is thrown when a client receives a UserException that was not declared in the oper...
Abstract base class for all Ice exceptions defined in Slice.
constexpr StreamHelperCategory StreamHelperCategoryEnum
Generated enum types.
int StreamHelperCategory
The stream helper category allows to select a StreamHelper specialization for a specific category of ...
std::ostream & operator<<(std::ostream &os, const Identity &value)
Outputs the description of an Identity to a stream, including all its fields.
ReplyStatus
Represents the status of a reply.
Definition ReplyStatus.h:28
@ ObjectNotExist
The dispatch could not find an implementation for the target object.
Definition ReplyStatus.h:36
@ InvalidData
The dispatch failed because the request payload could not be unmarshaled.
Definition ReplyStatus.h:56
@ OperationNotExist
The dispatch found an implementation for the target object but could not find the requested operation...
Definition ReplyStatus.h:42
@ Ok
The dispatch completed successfully.
Definition ReplyStatus.h:30
@ FacetNotExist
The dispatch found an implementation for the target object but could not find the requested facet.
Definition ReplyStatus.h:39
@ Unauthorized
The caller is not authorized to access the requested resource.
Definition ReplyStatus.h:59
The Ice RPC framework.
Definition SampleEvent.h:59
static constexpr bool fixedLength
Indicates if the type is always encoded on a fixed number of bytes.
static constexpr int minWireSize
The minimum number of bytes needed to marshal this type.
static constexpr StreamHelperCategory helper
The category trait, used for selecting the appropriate StreamHelper.