ServiceBusErrorContext Class

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

public final class ServiceBusErrorContext

Context for errors handled by the ServiceBusProcessorClient.

Method Summary

Modifier and Type Method and Description
String getEntityPath()

Gets the entity path associated with the error event.

ServiceBusErrorSource getErrorSource()

Gets the source associated with the error.

Throwable getException()

Gets the exception that triggered the call to the error event handler.

String getFullyQualifiedNamespace()

Gets the namespace name associated with the error event.

Methods inherited from java.lang.Object

Method Details

getEntityPath

public String getEntityPath()

Gets the entity path associated with the error event.

Returns:

The entity path associated with the error event.

getErrorSource

public ServiceBusErrorSource getErrorSource()

Gets the source associated with the error.

Returns:

The source associated with the error.

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.

getFullyQualifiedNamespace

public String getFullyQualifiedNamespace()

Gets the namespace name associated with the error event.

Returns:

The namespace name associated with the error event.

Applies to