# LoggingError

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/logging/struct-loggingerror/

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

```rust
struct LoggingError
```

The failure of the logging infrastructure (`LoggingException`): a log manager or a logger that
the resolver does not have.

Where upstream throws it, the port panics with it as the payload
(`std::panic::panic_any`), so that a caller that catches the panic can tell it apart.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/logging_exception.rs#L12)

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

The exception with the default message (`LoggingException()`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/logging_exception.rs#L23)

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

### with_message

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

The exception with `message` (`LoggingException(string)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/logging_exception.rs#L28)

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

### with_inner

```rust
fn with_inner(message: impl Into<String>, inner_exception: Box<dyn Error + Send + Sync>) -> Self
```

The exception with `message`, caused by `inner_exception`
(`LoggingException(string, Exception)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/logging_exception.rs#L34)

<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.Splat/logging/logging_exception.rs#L39)

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

### inner_exception

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

The exception that caused this one (`InnerException`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/logging/logging_exception.rs#L44)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToString`
- `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/).
