# Error

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/

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

```rust
struct Error<T, K>
```

An item that an operator could not handle, with its key and the error it raised
(`Error<TObject, TKey>`): what the error handler of `TransformSafe` receives.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/kernel/error.rs#L10)

## Members

- [`new`](#function-new)
- [`exception`](#function-exception)
- [`key`](#function-key)
- [`value`](#function-value)

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

### new

```rust
fn new(exception: Option<ObservableError>, value: T, key: K) -> Self
```

`Error(Exception?, TObject value, TKey key)`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/kernel/error.rs#L18)

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

### exception

```rust
fn exception(self: &Self) -> Option<&ObservableError>
```

The error (`Exception`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/kernel/error.rs#L23)

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

### key

```rust
fn key(self: &Self) -> &K
```

The key of the item (`Key`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/kernel/error.rs#L28)

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

### value

```rust
fn value(self: &Self) -> &T
```

The item (`Value`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/kernel/error.rs#L33)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `Equivalent<K>`
- `Clone`
- `PartialEq`
- `Eq`
- `Hash`
- `Display`
- `Debug`

## Availability

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