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
ConstructorsConstructorDescriptionErrorContext(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- Theerrorthat occurred.- Throws:
NullPointerException- ifpartitionContextorthrowableisnull.
-
-
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.
-