Enum AmqpErrorCondition

java.lang.Object
java.lang.Enum<AmqpErrorCondition>
com.azure.core.amqp.exception.AmqpErrorCondition
All Implemented Interfaces:
Serializable, Comparable<AmqpErrorCondition>, java.lang.constant.Constable

public enum AmqpErrorCondition extends Enum<AmqpErrorCondition>
Contains constants common to the AMQP protocol and constants shared by Azure services.
See Also:
  • Enum Constant Details

    • NOT_FOUND

      public static final AmqpErrorCondition NOT_FOUND
      A peer attempted to work with a remote entity that does not exist.
    • UNAUTHORIZED_ACCESS

      public static final AmqpErrorCondition UNAUTHORIZED_ACCESS
      A peer attempted to work with a remote entity to which it has no access due to security settings.
    • RESOURCE_LIMIT_EXCEEDED

      public static final AmqpErrorCondition RESOURCE_LIMIT_EXCEEDED
      A peer exceeded its resource allocation.
    • NOT_ALLOWED

      public static final AmqpErrorCondition NOT_ALLOWED
      The peer tried to use a frame in a manner that is inconsistent with the semantics defined in the specification.
    • INTERNAL_ERROR

      public static final AmqpErrorCondition INTERNAL_ERROR
      An internal error occurred. Operator intervention might be necessary to resume normal operation.
    • ILLEGAL_STATE

      public static final AmqpErrorCondition ILLEGAL_STATE
      The peer sent a frame that is not permitted in the current state.
    • NOT_IMPLEMENTED

      public static final AmqpErrorCondition NOT_IMPLEMENTED
      The peer tried to use functionality that is not implemented in its partner.
    • CONNECTION_FORCED

      public static final AmqpErrorCondition CONNECTION_FORCED
      An operator intervened to close the connection for some reason. The client could retry at some later date.
    • SERVER_BUSY_ERROR

      public static final AmqpErrorCondition SERVER_BUSY_ERROR
      The server is busy.
    • ARGUMENT_ERROR

      public static final AmqpErrorCondition ARGUMENT_ERROR
      One or more arguments supplied to the method are invalid.
    • ARGUMENT_OUT_OF_RANGE_ERROR

      public static final AmqpErrorCondition ARGUMENT_OUT_OF_RANGE_ERROR
      One or more arguments supplied to the method are invalid.
    • ENTITY_DISABLED_ERROR

      public static final AmqpErrorCondition ENTITY_DISABLED_ERROR
      Request for a runtime operation on a disabled entity.
    • PARTITION_NOT_OWNED_ERROR

      public static final AmqpErrorCondition PARTITION_NOT_OWNED_ERROR
      Partition is not owned.
    • STORE_LOCK_LOST_ERROR

      public static final AmqpErrorCondition STORE_LOCK_LOST_ERROR
      Lock token associated with the message or session has expired, or the lock token is not found.
    • PUBLISHER_REVOKED_ERROR

      public static final AmqpErrorCondition 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

      public static final AmqpErrorCondition 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

      public static final AmqpErrorCondition TRACKING_ID_PROPERTY
      Tracking Id for an exception.
    • PROTON_IO

      public static final AmqpErrorCondition PROTON_IO
      IO exceptions that occur in proton-j library.
    • CONNECTION_FRAMING_ERROR

      public static final AmqpErrorCondition CONNECTION_FRAMING_ERROR
      A connection error occurred. A valid frame header cannot be formed from the incoming byte stream.
    • OPERATION_CANCELLED

      public static final AmqpErrorCondition OPERATION_CANCELLED
      The operation was cancelled.
    • MESSAGE_LOCK_LOST

      public static final AmqpErrorCondition MESSAGE_LOCK_LOST
      Error condition when receiver attempts complete, abandon, renewLock, deadLetter, or defer on a peek-locked message whose lock had already expired.
    • SESSION_LOCK_LOST

      public static final AmqpErrorCondition 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

      public static final AmqpErrorCondition SESSION_CANNOT_BE_LOCKED
      Error condition when a client attempts to accept a session that is already locked by another client.
    • MESSAGE_NOT_FOUND

      public static final AmqpErrorCondition 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

      public static final AmqpErrorCondition SESSION_NOT_FOUND
      Error condition when a receiver attempts to receive from a session that does not exist.
    • ENTITY_ALREADY_EXISTS

      public static final AmqpErrorCondition ENTITY_ALREADY_EXISTS
      Error condition when a subscription client tries to create a rule with the name of an already existing rule.
    • CONNECTION_REDIRECT

      public static final AmqpErrorCondition 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.
    • TRANSFER_LIMIT_EXCEEDED

      public static final AmqpErrorCondition TRANSFER_LIMIT_EXCEEDED
      The peer sent more message transfers than currently allowed on the link.
  • Method Details

    • values

      public static AmqpErrorCondition[] 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

      public static AmqpErrorCondition valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getErrorCondition

      public String getErrorCondition()
      Gets the AMQP header value for this error condition.
      Returns:
      AMQP header value for this error condition.
    • fromString

      public static AmqpErrorCondition fromString(String errorCondition)
      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 - if errorCondition is null.