public final class ServiceBusException
extends com.azure.core.exception.AzureException
| Constructor and Description |
|---|
ServiceBusException(Throwable throwable,
ServiceBusErrorSource errorSource)
Creates an instance containing the error and the operation that created the error.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceBusFailureReason |
getReason()
Gets the
ServiceBusFailureReason in case of any errors. |
boolean |
isTransient()
Gets whether or not the exception is a transient error or not.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource)
throwable - The exception that occurred.errorSource - The Service Bus operation which caused the error.public ServiceBusFailureReason getReason()
ServiceBusFailureReason in case of any errors.ServiceBusFailureReasonpublic boolean isTransient()
true when user can retry the operation that generated the exception without additional
intervention; false otherwise.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.