ProcessErrorHandler type

Signature of the user provided function invoked by EventHubConsumerClient for errors that occur when receiving events or when executing any of the user provided functions passed to the subscribe() method.

type ProcessErrorHandler = (
  error: Error | MessagingError,
  context: PartitionContext
) => Promise<void>