# Enum `kurogane::capability::FsError`

```rust
#[non_exhaustive]
pub enum FsError {
    CapabilityDenied,
    PathDenied(Denial),
    InvalidPath(&'static str),
    TooLarge { limit: u64 },
    Io(Error),
}
```

Failure of one filesystem operation performed for an origin.

## Variants

### `CapabilityDenied`

```rust
CapabilityDenied
```

No grant of the origin carries the capability the operation needs.

### `PathDenied`

```rust
PathDenied(Denial)
```

A grant carries the capability, but not for this path.

### `InvalidPath`

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

The request path is malformed. The reason is a category, never the path.

### `TooLarge`

```rust
TooLarge { limit: u64 }
```

The file is larger than the transfer limit
([`FilesystemBuilder::max_file_size`](https://kurogane-rs.org/docs/api/capabilities/filesystembuilder.md#method.max_file_size)).

[crate::capability::FilesystemBuilder::max_file_size]: https://kurogane-rs.org/docs/api/capabilities/filesystembuilder.md#method.max_file_size

### `Io`

```rust
Io(Error)
```

The authorized operation failed in the OS. The caller is inside the
grant for this object. The OS detail may be shown.

## Trait implementations

- `impl Debug for FsError`
- `impl Display for FsError`
- `impl Error for FsError`
- `impl From<Error> for FsError`
- `impl From<FsError> for IpcError`

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