azure-docs-sdk-java/docs-ref-autogen/com.azure.messaging.service...

83 строки
7.1 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.messaging.servicebus.ServiceBusException"
fullName: "com.azure.messaging.servicebus.ServiceBusException"
name: "ServiceBusException"
nameWithType: "ServiceBusException"
summary: "Exception containing additional information about the operation that caused the error."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Throwable?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Exception?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.RuntimeException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"com.azure.core.exception.AzureException?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable-\">addSuppressed</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#fillInStackTrace--\">fillInStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getCause--\">getCause</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getLocalizedMessage--\">getLocalizedMessage</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getMessage--\">getMessage</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getStackTrace--\">getStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getSuppressed--\">getSuppressed</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#initCause-java.lang.Throwable-\">initCause</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintStream-\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-\">printStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement:A-\">setStackTrace</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#toString--\">toString</a>"
syntax: "public final class **ServiceBusException**</br> extends <xref href=\"com.azure.core.exception.AzureException?alt=com.azure.core.exception.AzureException&text=AzureException\" data-throw-if-not-resolved=\"False\" />"
constructors:
- uid: "com.azure.messaging.servicebus.ServiceBusException.ServiceBusException(java.lang.Throwable,com.azure.messaging.servicebus.ServiceBusErrorSource)"
fullName: "com.azure.messaging.servicebus.ServiceBusException.ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource)"
name: "ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource)"
nameWithType: "ServiceBusException.ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource)"
summary: "Creates an instance containing the error and the operation that created the error."
parameters:
- description: "The exception that occurred."
name: "throwable"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
- description: "The Service Bus operation which caused the error."
name: "errorSource"
type: "<xref href=\"com.azure.messaging.servicebus.ServiceBusErrorSource?alt=com.azure.messaging.servicebus.ServiceBusErrorSource&text=ServiceBusErrorSource\" data-throw-if-not-resolved=\"False\" />"
syntax: "public ServiceBusException(Throwable throwable, ServiceBusErrorSource errorSource)"
desc: "Creates an instance containing the error and the operation that created the error."
methods:
- uid: "com.azure.messaging.servicebus.ServiceBusException.getReason()"
fullName: "com.azure.messaging.servicebus.ServiceBusException.getReason()"
name: "getReason()"
nameWithType: "ServiceBusException.getReason()"
summary: "Gets the <xref uid=\"com.azure.messaging.servicebus.ServiceBusFailureReason\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ServiceBusFailureReason\"></xref> in case of any errors."
syntax: "public ServiceBusFailureReason getReason()"
desc: "Gets the <xref uid=\"com.azure.messaging.servicebus.ServiceBusFailureReason\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ServiceBusFailureReason\"></xref> in case of any errors."
returns:
description: "the <xref uid=\"com.azure.messaging.servicebus.ServiceBusFailureReason\" data-throw-if-not-resolved=\"false\" data-raw-source=\"ServiceBusFailureReason\"></xref>"
type: "<xref href=\"com.azure.messaging.servicebus.ServiceBusFailureReason?alt=com.azure.messaging.servicebus.ServiceBusFailureReason&text=ServiceBusFailureReason\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.messaging.servicebus.ServiceBusException.isTransient()"
fullName: "com.azure.messaging.servicebus.ServiceBusException.isTransient()"
name: "isTransient()"
nameWithType: "ServiceBusException.isTransient()"
summary: "Gets whether the exception is a transient error."
syntax: "public boolean isTransient()"
desc: "Gets whether the exception is a transient error."
returns:
description: "<code>true</code> when user can retry the operation that generated the exception without additional\n intervention; false otherwise."
type: "<xref href=\"boolean?alt=boolean&text=boolean\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Exception containing additional information about the operation that caused the error."
metadata: {}
package: "com.azure.messaging.servicebus"
artifact: com.azure:azure-messaging-servicebus:7.17.3