ErrorContext Class

  • java.lang.Object
    • com.azure.messaging.eventhubs.models.ErrorContext

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 ErrorContext.

Method Summary

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.

Methods inherited from java.lang.Object

Constructor Details

ErrorContext

public ErrorContext(PartitionContext partitionContext, Throwable throwable)

Creates a new instance of ErrorContext.

Parameters:

partitionContext - The partition information where the error occurred.
throwable - The error that occurred.

Method Details

getPartitionContext

public PartitionContext getPartitionContext()

Returns the partition information where the error occurred.

Returns:

The partition information where the error occurred.

getThrowable

public Throwable getThrowable()

Returns the error that occurred during event processing.

Returns:

The error that occurred during event processing.

Applies to