ErrorContext Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. ErrorContext
- com.
public class ErrorContext
This class contains information about an error that occurred while processing events.
Constructor Summary
| Constructor | Description |
|---|---|
| ErrorContext(PartitionContext partitionContext, Throwable throwable) |
Creates a new instance of Error |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Partition |
getPartitionContext()
Returns the partition information where the error occurred. |
| Throwable |
getThrowable()
Returns the error that occurred during event processing. |
Methods inherited from java.lang.Object
Constructor Details
ErrorContext
public ErrorContext(PartitionContext partitionContext, Throwable throwable)
Creates a new instance of ErrorContext.
Parameters:
Method Details
getPartitionContext
public PartitionContext getPartitionContext()
Returns the partition information where the error occurred.
Returns:
getThrowable
public Throwable getThrowable()
Returns the error that occurred during event processing.
Returns: