# Kzg Errors

## `Kzg.DisposedError`

Thrown when an operation is called after its KZG instance was disposed.

**Source:** [src/wasm/Kzg.ts](https://github.com/wevm/ox/blob/main/src/wasm/Kzg.ts#L453)

## `Kzg.InvalidInputError`

Thrown when a KZG operation receives malformed input.

**Source:** [src/wasm/Kzg.ts](https://github.com/wevm/ox/blob/main/src/wasm/Kzg.ts#L462)

## `Kzg.InvalidPrecomputeError`

Thrown when `precompute` is outside the supported memory bound.

**Source:** [src/wasm/Kzg.ts](https://github.com/wevm/ox/blob/main/src/wasm/Kzg.ts#L471)

## `Kzg.InvalidTrustedSetupError`

Thrown when c-kzg rejects the trusted setup.

**Source:** [src/wasm/Kzg.ts](https://github.com/wevm/ox/blob/main/src/wasm/Kzg.ts#L482)

## `Kzg.MemoryError`

Thrown when the KZG artifact reaches its 128 MiB memory limit.

**Source:** [src/wasm/Kzg.ts](https://github.com/wevm/ox/blob/main/src/wasm/Kzg.ts#L491)

## `Kzg.WasmError`

Thrown when the KZG artifact traps or reports an internal error.

**Source:** [src/wasm/Kzg.ts](https://github.com/wevm/ox/blob/main/src/wasm/Kzg.ts#L505)
