Class CallbackExceptionEventArgs
Describes an exception that was thrown during the library's invocation of an application-supplied callback handler.
Inherited Members
Namespace: RabbitMQ.Client.Events
Assembly: Apigen.dll
Syntax
public class CallbackExceptionEventArgs : BaseExceptionEventArgs
Remarks
When an exception is thrown from a callback registered with part of the RabbitMQ .NET client library, it is caught, packaged into a CallbackExceptionEventArgs, and passed through the appropriate IModel's or IConnection's CallbackException event handlers. If an exception is thrown in a CallbackException handler, it is silently swallowed, as CallbackException is the last chance to handle these kinds of exception.
Code constructing CallbackExceptionEventArgs instances will usually place helpful information about the context of the call in the IDictionary available through the Detail property.
Constructors
| Edit this page View SourceCallbackExceptionEventArgs(Exception)
Declaration
public CallbackExceptionEventArgs(Exception e)
Parameters
Type | Name | Description |
---|---|---|
Exception | e |
Methods
| Edit this page View SourceBuild(Exception, IDictionary<string, object>)
Declaration
public static CallbackExceptionEventArgs Build(Exception e, IDictionary<string, object> details)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | |
IDictionary<string, object> | details |
Returns
Type | Description |
---|---|
CallbackExceptionEventArgs |
Build(Exception, string)
Declaration
public static CallbackExceptionEventArgs Build(Exception e, string context)
Parameters
Type | Name | Description |
---|---|---|
Exception | e | |
string | context |
Returns
Type | Description |
---|---|
CallbackExceptionEventArgs |