6#include "azure/core/amqp/dll_import_export.hpp"
7#include "azure/core/amqp/models/amqp_header.hpp"
8#include "azure/core/amqp/models/amqp_properties.hpp"
9#include "azure/core/amqp/models/amqp_value.hpp"
11#include <azure/core/internal/extendable_enumeration.hpp>
13namespace Azure {
namespace Core {
namespace Amqp {
namespace Models {
namespace _internal {
15 class AmqpErrorCondition final
16 :
public Azure::Core::_internal::ExtendableEnumeration<AmqpErrorCondition> {
18 AmqpErrorCondition() : ExtendableEnumeration(){};
19 explicit AmqpErrorCondition(std::string
const& value) : ExtendableEnumeration(value) {}
29 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition InternalError;
38 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition NotFound;
48 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition UnauthorizedAccess;
56 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition DecodeError;
65 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ResourceLimitExceeded;
74 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition NotAllowed;
84 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition InvalidField;
93 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition NotImplemented;
104 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ResourceLocked;
114 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition PreconditionFailed;
123 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ResourceDeleted;
133 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition IllegalState;
148 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition FrameSizeTooSmall;
154 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition LinkStolen;
159 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition LinkPayloadSizeExceeded;
163 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition LinkDetachForced;
169 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ConnectionForced;
175 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ServerBusyError;
179 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ArgumentError;
183 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ArgumentOutOfRangeError;
187 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition EntityDisabledError;
191 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition PartitionNotOwnedError;
196 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition StoreLockLostError;
201 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition PublisherRevokedError;
207 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition TimeoutError;
211 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition TrackingIdProperty;
215 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ProtonIo;
220 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ConnectionFramingError;
224 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition OperationCancelled;
230 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition MessageLockLost;
238 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition SessionLockLost;
243 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition SessionCannotBeLocked;
248 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition MessageNotFound;
252 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition SessionNotFound;
257 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition EntityAlreadyExists;
277 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition ConnectionRedirect;
298 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition LinkRedirect;
303 AZ_CORE_AMQP_DLLEXPORT
static const AmqpErrorCondition TransferLimitExceeded;
306 struct AmqpError final
309 AmqpError() =
default;
312 ~AmqpError() =
default;
315 AmqpError(AmqpError
const&) =
default;
318 AmqpError& operator=(AmqpError
const&) =
default;
321 AmqpError(AmqpError&&) =
default;
324 AmqpError& operator=(AmqpError&&) =
default;
331 AmqpErrorCondition Condition;
339 std::string Description;
353 operator bool()
const
355 return !(Condition.ToString().empty() && Description.empty() && Info.empty());
358 std::ostream& operator<<(std::ostream&, AmqpError
const&);