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
ExceptionThe exception that this event data belongs to.
action
stringThe action associated with the event.
endpoint
stringThe endpoint used when this exception occurred.
entityName
stringThe entity path used when this exception occurred.
clientId
stringThe 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; }