# TargetInvocationError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/bindings/struct-targetinvocationerror/

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

```rust
struct TargetInvocationError
```

The error of a member that was invoked and failed (`System.Reflection.TargetInvocationException`):
what a binding gives the default exception handler when the sequence feeding its write faults
with an inner error.

Deviation (DEVIATIONS.md, ReactiveUI): the inner exception is kept as its message, so the
error stays `Clone`, `Eq` and `Send`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/binding_errors.rs#L71)

## Members

- [`with_inner`](#function-with_inner)
- [`message`](#function-message)
- [`inner_exception`](#function-inner_exception)

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

### with_inner

```rust
fn with_inner(message: impl Into<String>, inner_exception: &dyn Error) -> Self
```

The exception with `message`, caused by `inner_exception`
(`TargetInvocationException(string, Exception)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/binding_errors.rs#L83)

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

### message

```rust
fn message(self: &Self) -> &str
```

The message (`Message`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/binding_errors.rs#L88)

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

### inner_exception

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

The message of the error that caused this one (`InnerException.Message`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/bindings/binding_errors.rs#L93)

## 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`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)

## Availability

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