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, toString
public 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.ServiceBusFailureReason
public boolean isTransient()
true
when user can retry the operation that generated the exception without additional
intervention; false otherwise.Copyright © 2021 Microsoft Corporation. All rights reserved.