Skip to main content

RequestCatch Property

Gets or sets whether the exception should be caught and the event handlers called..

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public bool RequestCatch { get; set; }

Property Value

Boolean

Remarks

A filter handler can set this property to false to request that the exception not be caught, to avoid the callstack getting unwound up to the Dispatcher.

A previous handler in the event multicast might have already set this property to false, signalling that the exception will not be caught. We let the "don't catch" behavior override all others because it most likely means a debugging scenario.

See Also

Reference

DispatcherUnhandledExceptionFilterEventArgs Class
Avalonia.Threading Namespace