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

Function classifyError

packages/sql/sqlite-bun/src/SqliteClient.ts:39–40  ·  view source on GitHub ↗
(cause: unknown, message: string, operation: string)

Source from the content-addressed store, hash-verified

37const NANOS_PER_MILLI = BigInt(1_000_000)
38
39const classifyError = (cause: unknown, message: string, operation: string) =>
40 classifySqliteError(cause, { message, operation })
41
42/**
43 * Runtime type identifier used to mark Bun `SqliteClient` values.

Callers 4

makeFunction · 0.70
execFunction · 0.70
runFunction · 0.70
runValuesFunction · 0.70

Calls 1

classifySqliteErrorFunction · 0.90

Tested by

no test coverage detected