MCPcopy Create free account
hub / github.com/Effect-TS/effect / classifyError

Function classifyError

packages/sql/sqlite-wasm/src/OpfsWorker.ts:22–23  ·  view source on GitHub ↗
(cause: unknown, message: string, operation: string)

Source from the content-addressed store, hash-verified

20import type { OpfsWorkerMessage } from "./internal/opfsWorker.ts"
21
22const classifyError = (cause: unknown, message: string, operation: string) =>
23 classifySqliteError(cause, { message, operation })
24
25/**
26 * Configuration for the SQLite OPFS worker, including the message port used for the client protocol and the OPFS database name to open.

Callers 1

runFunction · 0.70

Calls 1

classifySqliteErrorFunction · 0.90

Tested by

no test coverage detected