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

65 строки
4.5 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.messaging.eventhubs.models.ErrorContext"
fullName: "com.azure.messaging.eventhubs.models.ErrorContext"
name: "ErrorContext"
nameWithType: "ErrorContext"
summary: "This class contains information about an error that occurred while processing events."
inheritances:
- "<xref href=\"java.lang.Object?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#toString--\">toString</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>"
syntax: "public class **ErrorContext**"
constructors:
- uid: "com.azure.messaging.eventhubs.models.ErrorContext.ErrorContext(com.azure.messaging.eventhubs.models.PartitionContext,java.lang.Throwable)"
fullName: "com.azure.messaging.eventhubs.models.ErrorContext.ErrorContext(PartitionContext partitionContext, Throwable throwable)"
name: "ErrorContext(PartitionContext partitionContext, Throwable throwable)"
nameWithType: "ErrorContext.ErrorContext(PartitionContext partitionContext, Throwable throwable)"
summary: "Creates a new instance of Error<wbr>Context."
parameters:
- description: "The partition information where the error occurred."
name: "partitionContext"
type: "<xref href=\"com.azure.messaging.eventhubs.models.PartitionContext?alt=com.azure.messaging.eventhubs.models.PartitionContext&text=PartitionContext\" data-throw-if-not-resolved=\"False\" />"
- description: "The <xref uid=\"java.lang.Throwable\" data-throw-if-not-resolved=\"false\" data-raw-source=\"error\"></xref> that occurred."
name: "throwable"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
syntax: "public ErrorContext(PartitionContext partitionContext, Throwable throwable)"
desc: "Creates a new instance of ErrorContext."
methods:
- uid: "com.azure.messaging.eventhubs.models.ErrorContext.getPartitionContext()"
fullName: "com.azure.messaging.eventhubs.models.ErrorContext.getPartitionContext()"
name: "getPartitionContext()"
nameWithType: "ErrorContext.getPartitionContext()"
summary: "Returns the partition information where the error occurred."
syntax: "public PartitionContext getPartitionContext()"
desc: "Returns the partition information where the error occurred."
returns:
description: "The partition information where the error occurred."
type: "<xref href=\"com.azure.messaging.eventhubs.models.PartitionContext?alt=com.azure.messaging.eventhubs.models.PartitionContext&text=PartitionContext\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.messaging.eventhubs.models.ErrorContext.getThrowable()"
fullName: "com.azure.messaging.eventhubs.models.ErrorContext.getThrowable()"
name: "getThrowable()"
nameWithType: "ErrorContext.getThrowable()"
summary: "Returns the error that occurred during event processing."
syntax: "public Throwable getThrowable()"
desc: "Returns the error that occurred during event processing."
returns:
description: "The error that occurred during event processing."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html\">Throwable</a>"
type: "class"
desc: "This class contains information about an error that occurred while processing events."
metadata: {}
package: "com.azure.messaging.eventhubs.models"
artifact: com.azure:azure-messaging-eventhubs:5.19.1