Class ErrorContext
java.lang.Object
com.azure.messaging.eventhubs.models.ErrorContext
This class contains information about an error that occurred while processing events.
-
Constructor Summary
ConstructorDescriptionErrorContext
(PartitionContext partitionContext, Throwable throwable) Creates a new instance of ErrorContext. -
Method Summary
Modifier and TypeMethodDescriptionReturns the partition information where the error occurred.Returns the error that occurred during event processing.
-
Constructor Details
-
ErrorContext
Creates a new instance of ErrorContext.- Parameters:
partitionContext
- The partition information where the error occurred.throwable
- Theerror
that occurred.- Throws:
NullPointerException
- ifpartitionContext
orthrowable
isnull
.
-
-
Method Details
-
getPartitionContext
Returns the partition information where the error occurred.- Returns:
- The partition information where the error occurred.
-
getThrowable
Returns the error that occurred during event processing.- Returns:
- The error that occurred during event processing.
-