Class ServiceBusErrorContext

java.lang.Object
com.azure.messaging.servicebus.ServiceBusErrorContext

public final class ServiceBusErrorContext extends Object
Context for errors handled by the Service Bus processor.
See Also:
  • Method Details

    • getException

      public Throwable getException()
      Gets the exception that triggered the call to the error event handler.
      Returns:
      The exception that triggered the call to the error event handler.
    • getErrorSource

      public ServiceBusErrorSource getErrorSource()
      Gets the source associated with the error.
      Returns:
      The source associated with the error.
    • getFullyQualifiedNamespace

      public String getFullyQualifiedNamespace()
      Gets the namespace name associated with the error event.
      Returns:
      The namespace name associated with the error event.
    • getEntityPath

      public String getEntityPath()
      Gets the entity path associated with the error event.
      Returns:
      The entity path associated with the error event.