# IoError

`import { IoError } from "destack:error";`

Portable I/O failure.

```ds title="IoError"
export struct IoError {
    kind: IoErrorKind;
    code: int32;
    message: string;
    cause: Dynamic<Error>;
}
```

[language/library/src/error/io.ds:53:65](https://github.com/destack-sh/destack/blob/main/language/library/src/error/io.ds#L53-L65)

## Members

### `kind: IoErrorKind`

The failure kind.

### `code: int32`

Platform-specific error code.

### `message: string`

User-facing detail.

### `cause: Dynamic<Error>`

Underlying cause.
