# HostErrorContextResource

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

Resource host-error context payload.

```ds title="HostErrorContextResource"
export struct HostErrorContextResource {
    kind: "resource";
    syscall: string;
    resourceId: uint64;
    resourceKind: string;
}
```

[language/library/src/error/host.ds:369:378](https://github.com/destack-sh/destack/blob/main/language/library/src/error/host.ds#L369-L378)

## Members

### `kind: "resource"`

Discriminator for this error-context variant.

### `syscall: string`

Optional syscall or host API name.

### `resourceId: uint64`

Optional resource id.

### `resourceKind: string`

Optional resource kind.
