# RtfError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/rich_text/enum-rtferror/

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

```rust
enum RtfError
```



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

## Members

- [`InvalidHeader`](#variant-invalidheader)
- [`InvalidSyntax`](#variant-invalidsyntax)
- [`LimitExceeded`](#variant-limitexceeded)
- [`InvalidUnicode`](#variant-invalidunicode)
- [`InvalidEncodedText`](#variant-invalidencodedtext)
- [`InvalidParameter`](#variant-invalidparameter)
- [`UnsupportedCodePage`](#variant-unsupportedcodepage)
- [`UnsupportedFeature`](#variant-unsupportedfeature)

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

### InvalidHeader

```rust
InvalidHeader
```



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

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

### InvalidSyntax

```rust
InvalidSyntax { offset: usize, message: &'static str }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rtf.rs#L73)

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

### LimitExceeded

```rust
LimitExceeded(&'static str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rtf.rs#L77)

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

### InvalidUnicode

```rust
InvalidUnicode
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rtf.rs#L78)

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

### InvalidEncodedText

```rust
InvalidEncodedText { code_page: i32 }
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rtf.rs#L79)

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

### InvalidParameter

```rust
InvalidParameter(&'static str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rtf.rs#L82)

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

### UnsupportedCodePage

```rust
UnsupportedCodePage(i32)
```



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

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

### UnsupportedFeature

```rust
UnsupportedFeature(&'static str)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/rich_text/rtf.rs#L84)

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