# Enum `kurogane::ConfigError`

```rust
#[non_exhaustive]
pub enum ConfigError {
    DuplicateHandler(String),
    InvalidScheme { name: String, reason: &'static str },
    DuplicateScheme(String),
    CapabilityCommand(String),
    OpaqueOrigin(String),
    SchedulerWithRunLoop,
    InvalidWindowOptions(&'static str),
    WindowWhenEmbedded,
    InvalidWindowClass(&'static str),
    InvalidWindowIcon,
    InvalidProfileDir(&'static str),
}
```

One problem in the [`App`](https://kurogane-rs.org/docs/api/app/app.md) builder configuration, reported
by `build()` / `run()` / `start_embedded()` as [`RuntimeError::InvalidConfiguration`].

[crate::App]: https://kurogane-rs.org/docs/api/app/app.md
[`RuntimeError::InvalidConfiguration`]: https://kurogane-rs.org/docs/api/app/runtimeerror.md#variant.InvalidConfiguration

## Variants

### `DuplicateHandler`

```rust
DuplicateHandler(String)
```

Two handlers share a name. Commands, async and binary commands,
streams and capability commands share one namespace.

### `InvalidScheme`

```rust
InvalidScheme { name: String, reason: &'static str }
```

A custom scheme name is invalid or reserved.

### `DuplicateScheme`

```rust
DuplicateScheme(String)
```

Two custom schemes share a name.

### `CapabilityCommand`

```rust
CapabilityCommand(String)
```

An ACL rule and a native capability both claim a command.

### `OpaqueOrigin`

```rust
OpaqueOrigin(String)
```

An ACL rule names the opaque origin, which would match every frame
without a host.

### `SchedulerWithRunLoop`

```rust
SchedulerWithRunLoop
```

[`App::run`](https://kurogane-rs.org/docs/api/app/app.md#method.run) was given a pump scheduler, which requires
the application to drive CEF's message loop itself.

[crate::App::run]: https://kurogane-rs.org/docs/api/app/app.md#method.run

### `InvalidWindowOptions`

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

[`App::window`](https://kurogane-rs.org/docs/api/app/app.md#method.window) was given options no window can
have, named here.

[crate::App::window]: https://kurogane-rs.org/docs/api/app/app.md#method.window

### `WindowWhenEmbedded`

```rust
WindowWhenEmbedded
```

[`App::window`](https://kurogane-rs.org/docs/api/app/app.md#method.window) was given to an application
started with [`App::start_embedded`](https://kurogane-rs.org/docs/api/app/app.md#method.start_embedded),
which has no start window.

[crate::App::window]: https://kurogane-rs.org/docs/api/app/app.md#method.window
[crate::App::start_embedded]: https://kurogane-rs.org/docs/api/app/app.md#method.start_embedded

### `InvalidWindowClass`

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

[`App::window_class`](https://kurogane-rs.org/docs/api/app/app.md#method.window_class) was given a class no
window manager can take, named here.

[crate::App::window_class]: https://kurogane-rs.org/docs/api/app/app.md#method.window_class

### `InvalidWindowIcon`

```rust
InvalidWindowIcon
```

[`App::window_icon`](https://kurogane-rs.org/docs/api/app/app.md#method.window_icon) was given bytes that
are not a PNG.

[crate::App::window_icon]: https://kurogane-rs.org/docs/api/app/app.md#method.window_icon

### `InvalidProfileDir`

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

[`App::profile_dir`](https://kurogane-rs.org/docs/api/app/app.md#method.profile_dir) was given a directory
no profile can be in, named here.

[crate::App::profile_dir]: https://kurogane-rs.org/docs/api/app/app.md#method.profile_dir

## Trait implementations

- `impl Clone for ConfigError`
- `impl Debug for ConfigError`
- `impl Display for ConfigError`
- `impl Eq for ConfigError`
- `impl Error for ConfigError`
- `impl PartialEq for ConfigError`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/error.rs#L444
