# RenderTargetNotReadyError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/struct-rendertargetnotreadyerror/

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

```rust
struct RenderTargetNotReadyError
```

The error a render target reports when it cannot be drawn to yet.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L7)

## Members

- [`new`](#function-new)
- [`new_with_message`](#function-new_with_message)
- [`new_with_inner_exception`](#function-new_with_inner_exception)
- [`new_with_message_and_inner_exception`](#function-new_with_message_and_inner_exception)
- [`message`](#function-message)
- [`inner_exception`](#function-inner_exception)

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

### new

```rust
fn new() -> Self
```

Creates the exception without a message.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L18)

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

### new_with_message

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

Creates the exception with the given message.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L23)

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

### new_with_inner_exception

```rust
fn new_with_inner_exception(inner_exception: Rc<dyn Error>) -> Self
```

Creates the exception for the error that caused it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L28)

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

### new_with_message_and_inner_exception

```rust
fn new_with_message_and_inner_exception(message: impl Into<String>, inner_exception: Rc<dyn Error>) -> Self
```

Creates the exception with the given message, for the error that
caused it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L34)

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

### message

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

The message that describes the error: the given one, or the default
message of the exception.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L40)

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

### inner_exception

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

The error that caused the exception, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/render_target_not_ready_exception.rs#L45)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `From<RenderTargetNotReadyError>`
- `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/).
