# NavigationError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/navigation/enum-navigationerror/

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

```rust
enum NavigationError
```

A navigation or an edit of the journal that failed. Where WinUI returns a failing `HRESULT`
(or throws in C#), FerroUI returns this error.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L60)

## Members

- [`MissingSourcePageType`](#variant-missingsourcepagetype)
- [`NotAPage`](#variant-notapage)
- [`MissingConstructor`](#variant-missingconstructor)
- [`FactoryFailed`](#variant-factoryfailed)
- [`FactoryTypeMismatch`](#variant-factorytypemismatch)
- [`NavigationPending`](#variant-navigationpending)
- [`EntryOwnedByAnotherFrame`](#variant-entryownedbyanotherframe)
- [`IndexOutOfRange`](#variant-indexoutofrange)
- [`NoBackEntry`](#variant-nobackentry)
- [`NoForwardEntry`](#variant-noforwardentry)
- [`InvalidCacheSize`](#variant-invalidcachesize)

<a id="variant-missingsourcepagetype"></a>

### MissingSourcePageType

```rust
MissingSourcePageType
```

No page type was given (`SourcePageType` set to null).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L62)

<a id="variant-notapage"></a>

### NotAPage

```rust
NotAPage(String)
```

The type does not derive from `FramePage`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L64)

<a id="variant-missingconstructor"></a>

### MissingConstructor

```rust
MissingConstructor(String)
```

The type has neither a default constructor nor a page factory of the frame: a page type
converted from a runtime type (`PageType::from`) whose `TypeInfo` has no default
constructor, which is the case of every class without the tables of types (the
`ferroui-base` feature `type-tables`) unless its constructor is registered
(`TypeInfo::register_constructor`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L70)

<a id="variant-factoryfailed"></a>

### FactoryFailed

```rust
FactoryFailed(String)
```

The page factory of the frame failed, with its message.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L72)

<a id="variant-factorytypemismatch"></a>

### FactoryTypeMismatch

```rust
FactoryTypeMismatch { expected: String, actual: String }
```

The page factory created a page of another type.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L74)

<a id="variant-navigationpending"></a>

### NavigationPending

```rust
NavigationPending
```

The journal was edited during a navigation.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L81)

<a id="variant-entryownedbyanotherframe"></a>

### EntryOwnedByAnotherFrame

```rust
EntryOwnedByAnotherFrame
```

The entry belongs to the journal of another frame.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L83)

<a id="variant-indexoutofrange"></a>

### IndexOutOfRange

```rust
IndexOutOfRange { index: usize, count: usize }
```

The index is outside the journal.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L85)

<a id="variant-nobackentry"></a>

### NoBackEntry

```rust
NoBackEntry
```

`go_back` with an empty back stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L92)

<a id="variant-noforwardentry"></a>

### NoForwardEntry

```rust
NoForwardEntry
```

`go_forward` with an empty forward stack.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L94)

<a id="variant-invalidcachesize"></a>

### InvalidCacheSize

```rust
InvalidCacheSize(i32)
```

A negative `CacheSize`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/navigation.rs#L96)

## 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`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `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/).
