# ExpressionError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/data/core/struct-expressionerror/

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

```rust
struct ExpressionError
```

The error state of a binding expression: the error and its kind.

(The managed counterpart is named like [`BindingError`](/docs/0.5.0/api/ferroui-base/data/struct-bindingerror/), which in this
port is the error object itself.)

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/binding_error.rs#L8)

## Members

- [`exception`](#struct_field-exception)
- [`error_type`](#struct_field-error_type)
- [`new`](#function-new)

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

### exception

```rust
exception: crate::data::BindingError
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/binding_error.rs#L9)

<a id="struct_field-error_type"></a>

### error_type

```rust
error_type: crate::data::BindingErrorType
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/binding_error.rs#L10)

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

### new

```rust
fn new(exception: BindingError, error_type: BindingErrorType) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/data/core/binding_error.rs#L14)

## Trait implementations

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

## Availability

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