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
eventAsyncEvent<TSender, TArgs>The async event that threw this exception.
exceptionExceptionThe thrown exception.
handlerAsyncEventHandler<TSender, TArgs>The async event handler that threw this exception.
senderTSenderThe instance that dispatched this event.
argsTArgsThe arguments passed to this event.
Type Parameters
TSenderThe type of the event dispatcher.
TArgsThe type of the argument object for this event.