Delegate AsyncEventExceptionHandler<TSender, TArgs>
- Namespace
- DSharpPlus.AsyncEvents
- Assembly
- DSharpPlus.dll
Provides a registration surface for a handler for exceptions raised by an async event or its registered event handlers.
public delegate void AsyncEventExceptionHandler<TSender, TArgs>(AsyncEvent<TSender, TArgs> @event, Exception exception, AsyncEventHandler<TSender, TArgs> handler, TSender sender, TArgs args) where TArgs : AsyncEventArgs
Parameters
event
AsyncEvent<TSender, TArgs>The async event that threw this exception.
exception
ExceptionThe thrown exception.
handler
AsyncEventHandler<TSender, TArgs>The async event handler that threw this exception.
sender
TSenderThe instance that dispatched this event.
args
TArgsThe arguments passed to this event.
Type Parameters
TSender
The type of the event dispatcher.
TArgs
The type of the argument object for this event.