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

Function classifyError

packages/sql/d1/src/D1Client.ts:33–34  ·  view source on GitHub ↗
(cause: unknown, message: string, operation: string)

Source from the content-addressed store, hash-verified

31const ATTR_DB_QUERY_TEXT = "db.query.text"
32
33const classifyError = (cause: unknown, message: string, operation: string) =>
34 new UnknownError({ cause, message, operation })
35
36/**
37 * Unique runtime identifier used to tag `D1Client` values.

Callers 5

makeBatchFunction · 0.70
makeFunction · 0.70
runStatementFunction · 0.70
runValuesFunction · 0.70
runValuesUncachedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected