Partager via


AmqpErrorCondition Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.core.amqp.exception.AmqpErrorCondition

public enum AmqpErrorCondition
extends Enum<AmqpErrorCondition>

Contains constants common to the AMQP protocol and constants shared by Azure services.

Fields

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.

CONNECTION_FORCED

An operator intervened to close the connection for some reason.

CONNECTION_FRAMING_ERROR

A connection error occurred.

CONNECTION_REDIRECT

The container is no longer available on the current connection.

ENTITY_ALREADY_EXISTS

Error condition when a subscription client tries to create a rule with the name of an already existing rule.

ENTITY_DISABLED_ERROR

Request for a runtime operation on a disabled entity.

ILLEGAL_STATE

The peer sent a frame that is not permitted in the current state.

INTERNAL_ERROR

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.

MESSAGE_LOCK_LOST

Error condition when receiver attempts complete, abandon, renewLock, deadLetter, or defer on a peek-locked message whose lock had already expired.

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.

NOT_ALLOWED

The peer tried to use a frame in a manner that is inconsistent with the semantics defined in the specification.

NOT_FOUND

A peer attempted to work with a remote entity that does not exist.

NOT_IMPLEMENTED

The peer tried to use functionality that is not implemented in its partner.

OPERATION_CANCELLED

The operation was cancelled.

PARTITION_NOT_OWNED_ERROR

Partition is not owned.

PROTON_IO

IO exceptions that occur in proton-j library.

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.

RESOURCE_LIMIT_EXCEEDED

A peer exceeded its resource allocation.

SERVER_BUSY_ERROR

The server is busy.

SESSION_CANNOT_BE_LOCKED

Error condition when a client attempts to accept a session that is already locked by another client.

SESSION_LOCK_LOST

Error condition when a session receiver performs an operation on a session after its lock is expired.

SESSION_NOT_FOUND

Error condition when a receiver attempts to receive from a session that does not exist.

STORE_LOCK_LOST_ERROR

Lock token associated with the message or session has expired, or the lock token is not found.

TIMEOUT_ERROR

The server did not respond to the requested operation within the specified time.

TRACKING_ID_PROPERTY

Tracking Id for an exception.

TRANSFER_LIMIT_EXCEEDED

The peer sent more message transfers than currently allowed on the link.

UNAUTHORIZED_ACCESS

A peer attempted to work with a remote entity to which it has no access due to security settings.

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

fromString(String errorCondition)

public static AmqpErrorCondition fromString(String errorCondition)

Parses a serialized value to an ErrorCondition instance.

Parameters

errorCondition
String
the serialized value to parse.

Returns

the parsed ErrorCondition object, or null if unable to parse.

getErrorCondition()

public String getErrorCondition()

Gets the AMQP header value for this error condition.

Returns

AMQP header value for this error condition.

valueOf(String name)

public static AmqpErrorCondition valueOf(String name)

Parameters

name
String

Returns

values()

public static AmqpErrorCondition[] values()

Returns

Applies to