ServiceBusException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - java.
lang. RuntimeException - com.
azure. core. exception. AzureException - com.
azure. messaging. servicebus. ServiceBusException
- com.
- com.
- java.
- java.
- java.
public final class ServiceBusException
extends AzureException
Exception containing additional information about the operation that caused the error.
Constructor Summary
Constructor | Description |
---|---|
ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource) |
Creates an instance containing the error and the operation that created the error. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Service |
getReason()
Gets the ServiceBusFailureReason in case of any errors. |
boolean |
isTransient()
Gets whether the exception is a transient error. |
Methods inherited from java.lang.Object
Methods inherited from java.lang.Throwable
Constructor Details
ServiceBusException
public ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource)
Creates an instance containing the error and the operation that created the error.
Parameters:
Method Details
getReason
public ServiceBusFailureReason getReason()
Gets the ServiceBusFailureReason in case of any errors.
Returns:
isTransient
public boolean isTransient()
Gets whether the exception is a transient error.
Returns:
true
when user can retry the operation that generated the exception without additional
intervention; false otherwise.Applies to
Azure SDK for Java