Class ErrorContext

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

public class ErrorContext extends Object
This class contains information about an error that occurred while processing events.
  • 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.
      Throws:
      NullPointerException - if partitionContext or throwable is null.
  • 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.