ServiceBusFailureReason Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. messaging. servicebus. ServiceBusFailureReason
- com.
- com.
public final class ServiceBusFailureReason
extends ExpandableStringEnum<ServiceBusFailureReason>
The set of well-known reasons for a Service Bus operation failure that was the cause of an exception.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Service |
GENERAL_ERROR
The exception was the result of a general error within the client library. |
static final
Service |
MESSAGE_LOCK_LOST
The lock on the message is lost. |
static final
Service |
MESSAGE_NOT_FOUND
The requested message was not found. |
static final
Service |
MESSAGE_SIZE_EXCEEDED
A message is larger than the maximum size allowed for its transport. |
static final
Service |
MESSAGING_ENTITY_ALREADY_EXISTS
An entity with the same name exists under the same namespace. |
static final
Service |
MESSAGING_ENTITY_DISABLED
The Messaging Entity is disabled. |
static final
Service |
MESSAGING_ENTITY_NOT_FOUND
A Service Bus resource cannot be found by the Service Bus service. |
static final
Service |
QUOTA_EXCEEDED
The quota applied to an Service Bus resource has been exceeded while interacting with the Azure Service Bus service. |
static final
Service |
SERVICE_BUSY
The Azure Service Bus service reports that it is busy in response to a client request to perform an operation . |
static final
Service |
SERVICE_COMMUNICATION_ERROR
There was a general communications error encountered when interacting with the Azure Service Bus service. |
static final
Service |
SERVICE_TIMEOUT
An operation or other request timed out while interacting with the Azure Service Bus service. |
static final
Service |
SESSION_CANNOT_BE_LOCKED
The requested session cannot be locked. |
static final
Service |
SESSION_LOCK_LOST
The lock on the session has expired. |
static final
Service |
UNAUTHORIZED
The user doesn't have access to the entity. |
Constructor Summary
Constructor | Description |
---|---|
ServiceBusFailureReason() |
Deprecated
Use ServiceBusErrorSource#fromString(String, Class) instead.
Creates a new instance of the failure reason. |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
GENERAL_ERROR
public static final ServiceBusFailureReason GENERAL_ERROR
The exception was the result of a general error within the client library.
MESSAGE_LOCK_LOST
public static final ServiceBusFailureReason MESSAGE_LOCK_LOST
The lock on the message is lost. Callers should call attempt to receive and process the message again.
MESSAGE_NOT_FOUND
public static final ServiceBusFailureReason MESSAGE_NOT_FOUND
The requested message was not found.
MESSAGE_SIZE_EXCEEDED
public static final ServiceBusFailureReason MESSAGE_SIZE_EXCEEDED
A message is larger than the maximum size allowed for its transport.
MESSAGING_ENTITY_ALREADY_EXISTS
public static final ServiceBusFailureReason MESSAGING_ENTITY_ALREADY_EXISTS
An entity with the same name exists under the same namespace.
MESSAGING_ENTITY_DISABLED
public static final ServiceBusFailureReason MESSAGING_ENTITY_DISABLED
The Messaging Entity is disabled. Enable the entity again using Portal.
MESSAGING_ENTITY_NOT_FOUND
public static final ServiceBusFailureReason MESSAGING_ENTITY_NOT_FOUND
A Service Bus resource cannot be found by the Service Bus service.
QUOTA_EXCEEDED
public static final ServiceBusFailureReason QUOTA_EXCEEDED
The quota applied to an Service Bus resource has been exceeded while interacting with the Azure Service Bus service.
SERVICE_BUSY
public static final ServiceBusFailureReason SERVICE_BUSY
The Azure Service Bus service reports that it is busy in response to a client request to perform an operation .
SERVICE_COMMUNICATION_ERROR
public static final ServiceBusFailureReason SERVICE_COMMUNICATION_ERROR
There was a general communications error encountered when interacting with the Azure Service Bus service.
SERVICE_TIMEOUT
public static final ServiceBusFailureReason SERVICE_TIMEOUT
An operation or other request timed out while interacting with the Azure Service Bus service.
SESSION_CANNOT_BE_LOCKED
public static final ServiceBusFailureReason SESSION_CANNOT_BE_LOCKED
The requested session cannot be locked.
SESSION_LOCK_LOST
public static final ServiceBusFailureReason SESSION_LOCK_LOST
The lock on the session has expired. Callers should request the session again.
UNAUTHORIZED
public static final ServiceBusFailureReason UNAUTHORIZED
The user doesn't have access to the entity.
Constructor Details
ServiceBusFailureReason
@Deprecated
public ServiceBusFailureReason()
Deprecated
Creates a new instance of the failure reason. Use the existing failure reasons and create a new failure reason using ServiceBusFailureReason#fromString(String, Class).
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for