# SequenceError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/linq/enum-sequenceerror/

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

```rust
enum SequenceError
```

The error an aggregate operator ends its sequence with when the sequence does not have the
shape the operator needs (the exceptions upstream's operators throw into `OnError`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L13)

## Members

- [`NoElements`](#variant-noelements)
- [`NoMatchingElements`](#variant-nomatchingelements)
- [`MoreThanOneElement`](#variant-morethanoneelement)
- [`MoreThanOneMatchingElement`](#variant-morethanonematchingelement)
- [`Overflow`](#variant-overflow)
- [`DuplicateKey`](#variant-duplicatekey)
- [`is_invalid_operation`](#function-is_invalid_operation)

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

### NoElements

```rust
NoElements
```

The sequence has no elements (`InvalidOperationException` with `Strings_Linq.NO_ELEMENTS`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L15)

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

### NoMatchingElements

```rust
NoMatchingElements
```

No element of the sequence satisfies the predicate (`InvalidOperationException` with
`Strings_Linq.NO_MATCHING_ELEMENTS`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L18)

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

### MoreThanOneElement

```rust
MoreThanOneElement
```

The sequence has more than one element (`InvalidOperationException` with
`Strings_Linq.MORE_THAN_ONE_ELEMENT`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L21)

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

### MoreThanOneMatchingElement

```rust
MoreThanOneMatchingElement
```

More than one element satisfies the predicate (`InvalidOperationException` with
`Strings_Linq.MORE_THAN_ONE_MATCHING_ELEMENT`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L24)

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

### Overflow

```rust
Overflow
```

A count does not fit its type (`OverflowException` of the `checked` counts).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L26)

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

### DuplicateKey

```rust
DuplicateKey
```

Two elements have the same key (`ArgumentException` of `Dictionary<TKey, TValue>.Add`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.rs#L28)

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

### is_invalid_operation

```rust
fn is_invalid_operation(self: &Self) -> bool
```

Whether the error is one of upstream's `InvalidOperationException`s (the sequence has no
element, no matching element, or more than one).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/linq/aggregate.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`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `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/).
