Table of Contents

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 = 0

Defines that no exceptions should be thrown. Only exception handlers will be used.

ThrowFatal = 1

Defines that only fatal (i.e. non-AsyncEventTimeoutException<TSender, TArgs>) exceptions should be thrown.

ThrowNonFatal = 2

Defines that only non-fatal (i.e. AsyncEventTimeoutException<TSender, TArgs>) exceptions should be thrown.

ThrowAll = ThrowFatal | ThrowNonFatal

Defines that all exceptions should be thrown. This is equivalent to combining ThrowFatal and ThrowNonFatal flags.

HandleFatal = 4

Defines that only fatal (i.e. non-AsyncEventTimeoutException<TSender, TArgs>) exceptions should be handled by the specified exception handler.

HandleNonFatal = 8

Defines that only non-fatal (i.e. AsyncEventTimeoutException<TSender, TArgs>) exceptions should be handled by the specified exception handler.

HandleAll = HandleFatal | HandleNonFatal

Defines that all exceptions should be handled by the specified exception handler. This is equivalent to combining HandleFatal and HandleNonFatal flags.

ThrowAllHandleAll = ThrowAll | Default

Defines that all exceptions should be thrown and handled by the specified exception handler. This is equivalent to combining HandleAll and ThrowAll flags.

Default = HandleFatal | HandleNonFatal

Default mode, equivalent to HandleAll.