Enum AsyncEventExceptionMode
- Namespace
- DisCatSharp.Common.Utilities
- Assembly
- DisCatSharp.Common.dll
Defines the behaviour for throwing exceptions from InvokeAsync(TSender, TArgs, AsyncEventExceptionMode).
[Flags]
public enum AsyncEventExceptionMode
- Extension Methods
Fields
IgnoreAll = 0Defines that no exceptions should be thrown. Only exception handlers will be used.
ThrowFatal = 1Defines that only fatal (i.e. non-AsyncEventTimeoutException<TSender, TArgs>) exceptions should be thrown.
ThrowNonFatal = 2Defines that only non-fatal (i.e. AsyncEventTimeoutException<TSender, TArgs>) exceptions should be thrown.
ThrowAll = ThrowFatal | ThrowNonFatalDefines that all exceptions should be thrown. This is equivalent to combining ThrowFatal and ThrowNonFatal flags.
HandleFatal = 4Defines that only fatal (i.e. non-AsyncEventTimeoutException<TSender, TArgs>) exceptions should be handled by the specified exception handler.
HandleNonFatal = 8Defines that only non-fatal (i.e. AsyncEventTimeoutException<TSender, TArgs>) exceptions should be handled by the specified exception handler.
HandleAll = HandleFatal | HandleNonFatalDefines that all exceptions should be handled by the specified exception handler. This is equivalent to combining HandleFatal and HandleNonFatal flags.
ThrowAllHandleAll = ThrowAll | DefaultDefines that all exceptions should be thrown and handled by the specified exception handler. This is equivalent to combining HandleAll and ThrowAll flags.
Default = HandleFatal | HandleNonFatalDefault mode, equivalent to HandleAll.