Package com.azure.core.amqp.exception
Enum AmqpErrorCondition
- All Implemented Interfaces:
Serializable
,Comparable<AmqpErrorCondition>
,java.lang.constant.Constable
Contains constants common to the AMQP protocol and constants shared by Azure services.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionOne or more arguments supplied to the method are invalid.One or more arguments supplied to the method are invalid.An operator intervened to close the connection for some reason.A connection error occurred.The container is no longer available on the current connection.Error condition when a subscription client tries to create a rule with the name of an already existing rule.Request for a runtime operation on a disabled entity.The peer sent a frame that is not permitted in the current state.An internal error occurred.An operator intervened to detach for some reason.The peer sent a larger message than is supported on the link.The address provided cannot be resolved to a terminus at the current container.The link has been attached elsewhere, causing the existing attachment to be forcibly closed.Error condition when receiver attemptscomplete
,abandon
,renewLock
,deadLetter
, ordefer
on a peek-locked message whose lock had already expired.Error condition when a receiver attempts to receive a message with sequence number and the message with that sequence number is not available in the queue or subscription.The peer tried to use a frame in a manner that is inconsistent with the semantics defined in the specification.A peer attempted to work with a remote entity that does not exist.The peer tried to use functionality that is not implemented in its partner.The operation was cancelled.Partition is not owned.IO exceptions that occur in proton-j library.The TokenProvider object could not acquire a token, the token is invalid, or the token does not contain the claims required to perform the operation.A peer exceeded its resource allocation.The server is busy.Error condition when a client attempts to accept a session that is already locked by another client.Error condition when a session receiver performs an operation on a session after its lock is expired.Error condition when a receiver attempts to receive from a session that does not exist.Lock token associated with the message or session has expired, or the lock token is not found.The server did not respond to the requested operation within the specified time.Tracking Id for an exception.The peer sent more message transfers than currently allowed on the link.A peer attempted to work with a remote entity to which it has no access due to security settings. -
Method Summary
Modifier and TypeMethodDescriptionstatic AmqpErrorCondition
fromString
(String errorCondition) Parses a serialized value to an ErrorCondition instance.Gets the AMQP header value for this error condition.static AmqpErrorCondition
Returns the enum constant of this type with the specified name.static AmqpErrorCondition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NOT_FOUND
A peer attempted to work with a remote entity that does not exist. -
UNAUTHORIZED_ACCESS
A peer attempted to work with a remote entity to which it has no access due to security settings. -
RESOURCE_LIMIT_EXCEEDED
A peer exceeded its resource allocation. -
NOT_ALLOWED
The peer tried to use a frame in a manner that is inconsistent with the semantics defined in the specification. -
INTERNAL_ERROR
An internal error occurred. Operator intervention might be necessary to resume normal operation. -
ILLEGAL_STATE
The peer sent a frame that is not permitted in the current state. -
NOT_IMPLEMENTED
The peer tried to use functionality that is not implemented in its partner. -
LINK_STOLEN
The link has been attached elsewhere, causing the existing attachment to be forcibly closed. -
LINK_PAYLOAD_SIZE_EXCEEDED
The peer sent a larger message than is supported on the link. -
LINK_DETACH_FORCED
An operator intervened to detach for some reason. -
CONNECTION_FORCED
An operator intervened to close the connection for some reason. The client could retry at some later date. -
SERVER_BUSY_ERROR
The server is busy. -
ARGUMENT_ERROR
One or more arguments supplied to the method are invalid. -
ARGUMENT_OUT_OF_RANGE_ERROR
One or more arguments supplied to the method are invalid. -
ENTITY_DISABLED_ERROR
Request for a runtime operation on a disabled entity. -
PARTITION_NOT_OWNED_ERROR
Partition is not owned. -
STORE_LOCK_LOST_ERROR
Lock token associated with the message or session has expired, or the lock token is not found. -
PUBLISHER_REVOKED_ERROR
The TokenProvider object could not acquire a token, the token is invalid, or the token does not contain the claims required to perform the operation. -
TIMEOUT_ERROR
The server did not respond to the requested operation within the specified time. The server may have completed the requested operation. This can happen due to network or other infrastructure delays. -
TRACKING_ID_PROPERTY
Tracking Id for an exception. -
PROTON_IO
IO exceptions that occur in proton-j library. -
CONNECTION_FRAMING_ERROR
A connection error occurred. A valid frame header cannot be formed from the incoming byte stream. -
OPERATION_CANCELLED
The operation was cancelled. -
MESSAGE_LOCK_LOST
Error condition when receiver attemptscomplete
,abandon
,renewLock
,deadLetter
, ordefer
on a peek-locked message whose lock had already expired. -
SESSION_LOCK_LOST
Error condition when a session receiver performs an operation on a session after its lock is expired. When a client accepts a session, the session is locked to the receiver for a duration specified in the entity definition. When the accepted session remains idle for the duration of lock, that is no operations performed on the session, the lock expires and the session is made available to other clients. -
SESSION_CANNOT_BE_LOCKED
Error condition when a client attempts to accept a session that is already locked by another client. -
MESSAGE_NOT_FOUND
Error condition when a receiver attempts to receive a message with sequence number and the message with that sequence number is not available in the queue or subscription. -
SESSION_NOT_FOUND
Error condition when a receiver attempts to receive from a session that does not exist. -
ENTITY_ALREADY_EXISTS
Error condition when a subscription client tries to create a rule with the name of an already existing rule. -
CONNECTION_REDIRECT
The container is no longer available on the current connection. The peer SHOULD attempt reconnection to the container using the details provided in the info map. The address provided cannot be resolved to a terminus at the current container. The info map MAY contain the following information to allow the client to locate the attach to the terminus. hostname: the hostname of the container. This is the value that SHOULD be supplied in the hostname field of the open frame, and during the SASL and TLS negotiation (if used). network-host: the DNS hostname or IP address of the machine hosting the container. port: the port number on the machine hosting the container. -
LINK_REDIRECT
The address provided cannot be resolved to a terminus at the current container. The info map MAY contain the following information to allow the client to locate the attach to the terminus. hostname: the hostname of the container hosting the terminus. This is the value that SHOULD be supplied in the hostname field of the open frame, and during SASL and TLS negotiation (if used). network-host: the DNS hostname or IP address of the machine hosting the container. port: the port number on the machine hosting the container. address: the address of the terminus at the container. -
TRANSFER_LIMIT_EXCEEDED
The peer sent more message transfers than currently allowed on the link.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getErrorCondition
Gets the AMQP header value for this error condition.- Returns:
- AMQP header value for this error condition.
-
fromString
Parses a serialized value to an ErrorCondition instance.- Parameters:
errorCondition
- the serialized value to parse.- Returns:
- the parsed ErrorCondition object, or null if unable to parse.
- Throws:
NullPointerException
- iferrorCondition
isnull
.
-