# XamlLoadError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/struct-xamlloaderror/

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

```rust
struct XamlLoadError
```

The error raised when a markup document cannot be loaded, or when a
member of the markup runtime fails on its input.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_load_exception.rs#L9)

## 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
```

An error without a message.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_load_exception.rs#L20)

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

### with_message

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

An error with a message.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_load_exception.rs#L25)

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

### with_inner

```rust
fn with_inner(message: impl Into<String>, inner_exception: impl std::error::Error + 'static) -> Self
```

An error with a message and the error that caused it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_load_exception.rs#L30)

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

### message

```rust
fn message(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_load_exception.rs#L34)

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

### inner_exception

```rust
fn inner_exception(self: &Self) -> Option<&Rc<dyn std::error::Error>>
```

The error that caused this one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/xaml_load_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`
- [`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`
- `Default`
- `Display`
- [`Error`](/docs/0.5.0/api/ferroui-dynamic-data/kernel/struct-error/)
- `PartialEq`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
