# SortError

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

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

```rust
struct SortError
```

The error of a sort that cannot find the position of an item (`SortException`): a comparer
that does not give a unique position to each item while a binary search is asked for, or an
item that is not in the sorted collection. The operators end their sequence with it, as an
exception thrown in an operator of upstream reaches `OnError`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/sort_exception.rs#L13)

## Members

- [`new`](#function-new)
- [`with_inner`](#function-with_inner)
- [`message`](#function-message)
- [`into_error`](#function-into_error)

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

### new

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

An error with `message` (`SortException(string)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/sort_exception.rs#L24)

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

### with_inner

```rust
fn with_inner(message: impl Into<String>, inner: ObservableError) -> Self
```

An error with `message`, caused by `inner` (`SortException(string, Exception)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/sort_exception.rs#L29)

<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.DynamicData/list/sort_exception.rs#L34)

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

### into_error

```rust
fn into_error(self: Self) -> ObservableError
```

The error as the error of a sequence.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.DynamicData/list/sort_exception.rs#L39)

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