# DispatcherUnhandledExceptionFilterEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/threading/struct-dispatcherunhandledexceptionfiltereventargs/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct DispatcherUnhandledExceptionFilterEventArgs<'a>
```

Provides data for the `Dispatcher::unhandled_exception_filter` event.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/threading/dispatcher_unhandled_exception_filter_event_args.rs#L9)

## Members

- [`exception`](#function-exception)
- [`exception_message`](#function-exception_message)
- [`request_catch`](#function-request_catch)
- [`set_request_catch`](#function-set_request_catch)

<a id="function-exception"></a>

### exception

```rust
fn exception(self: &Self) -> &dyn Any + Send
```

The panic payload that was raised while executing code by way of a
dispatcher.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/threading/dispatcher_unhandled_exception_filter_event_args.rs#L22)

<a id="function-exception_message"></a>

### exception_message

```rust
fn exception_message(self: &Self) -> Option<&str>
```

The panic message, when the payload is a string.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/threading/dispatcher_unhandled_exception_filter_event_args.rs#L27)

<a id="function-request_catch"></a>

### request_catch

```rust
fn request_catch(self: &Self) -> bool
```

Whether the exception should be caught and the
`unhandled_exception` handlers called.

A filter handler can set this to `false`, which stops the exception
from being caught and handed to the `unhandled_exception` handlers.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/threading/dispatcher_unhandled_exception_filter_event_args.rs#L36)

<a id="function-set_request_catch"></a>

### set_request_catch

```rust
fn set_request_catch(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/threading/dispatcher_unhandled_exception_filter_event_args.rs#L40)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`DispatcherEventArgs`](/docs/0.5.0/api/ferroui-base/threading/trait-dispatchereventargs/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
