# ComputeError

`import { ComputeError } from "destack:compute";`

Portable compute error.

```ds title="ComputeError"
export struct ComputeError {
    kind: ComputeErrorKind;
    message: string;
    backendCode: int32;
}
```

[language/library/src/compute/error.ds:23:32](https://github.com/destack-sh/destack/blob/main/language/library/src/compute/error.ds#L23-L32)

## Members

### `kind: ComputeErrorKind`

Error category.

### `message: string`

Human-readable message.

### `backendCode: int32`

Backend-specific error code when available.
