public class ErrorContext extends Object
| Constructor and Description |
|---|
ErrorContext(PartitionContext partitionContext,
Throwable throwable)
Creates a new instance of ErrorContext.
|
| Modifier and Type | Method and Description |
|---|---|
PartitionContext |
getPartitionContext()
Returns the partition information where the error occurred.
|
Throwable |
getThrowable()
Returns the error that occurred during event processing.
|
public ErrorContext(PartitionContext partitionContext, Throwable throwable)
partitionContext - The partition information where the error occurred.throwable - The error that occurred.NullPointerException - if partitionContext or throwable is null.public PartitionContext getPartitionContext()
public Throwable getThrowable()
Copyright © 2020 Microsoft Corporation. All rights reserved.