Table of Contents

Class ExceptionReceivedEventArgs

Namespace
Microsoft.Azure.ServiceBus
Assembly
Microsoft.Azure.ServiceBus.dll

Provides data for the ExceptionReceivedHandler event.

public sealed class ExceptionReceivedEventArgs : EventArgs
Inheritance
ExceptionReceivedEventArgs
Inherited Members

Constructors

ExceptionReceivedEventArgs(Exception, string, string, string, string)

Initializes a new instance of the ExceptionReceivedEventArgs class.

public ExceptionReceivedEventArgs(Exception exception, string action, string endpoint, string entityName, string clientId)

Parameters

exception Exception

The exception that this event data belongs to.

action string

The action associated with the event.

endpoint string

The endpoint used when this exception occurred.

entityName string

The entity path used when this exception occurred.

clientId string

The Client Id can be used to associate with the QueueClient, SubscriptionClient, MessageSender or MessageReceiverthat encountered the exception.

Properties

Exception

Gets the parent class exception to which this event data belongs.

public Exception Exception { get; }

Property Value

Exception

The exception, generated by the parent class, to which this event data belongs.

ExceptionReceivedContext

Gets the context of the exception (action, namespace name, and entity path).

public ExceptionReceivedContext ExceptionReceivedContext { get; }

Property Value

ExceptionReceivedContext