# HostErrorContextIo

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

I/O host-error context payload.

```ds title="HostErrorContextIo"
export struct HostErrorContextIo {
    kind: "io";
    syscall: string;
    path: HostPathPayload;
    dest: HostPathPayload;
    pathText: string;
    destText: string;
    fd: int32;
}
```

[language/library/src/error/host.ds:311:326](https://github.com/destack-sh/destack/blob/main/language/library/src/error/host.ds#L311-L326)

## Members

### `kind: "io"`

Discriminator for this error-context variant.

### `syscall: string`

Optional syscall or host API name.

### `path: HostPathPayload`

Optional primary path payload.

### `dest: HostPathPayload`

Optional destination path payload.

### `pathText: string`

Optional primary path text fallback.

### `destText: string`

Optional destination path text fallback.

### `fd: int32`

Optional file descriptor.
