# ViewLocatorNotFoundError

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

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

```rust
struct ViewLocatorNotFoundError
```

The error of `ViewLocator::current` when no
`IViewLocator` is registered (`ViewLocatorNotFoundException`); it is the
payload of the panic (`std::panic::panic_any`).

Deviation (DEVIATIONS.md, ReactiveUI): the inner exception is kept as its message, so that the
error can be the payload of a panic, which has to be `Send`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/view/view_locator_not_found_exception.rs#L13)

## Members

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

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

### new

```rust
fn new() -> Self
```

The exception with a message that names the builder calls registering the default locator
(`ViewLocatorNotFoundException()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/view/view_locator_not_found_exception.rs#L31)

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

### with_message

```rust
fn with_message(message: impl Into<String>) -> Self
```

The exception with `message` (`ViewLocatorNotFoundException(string)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/view/view_locator_not_found_exception.rs#L38)

<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`
(`ViewLocatorNotFoundException(string, Exception)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/view/view_locator_not_found_exception.rs#L44)

<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/view/view_locator_not_found_exception.rs#L49)

<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/view/view_locator_not_found_exception.rs#L54)

## 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`
- `Default`
- `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/).
