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

Function classifyError

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

Source from the content-addressed store, hash-verified

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

Callers 5

makeBatchFunction · 0.70
prepareFunction · 0.70
runStatementRawFunction · 0.70
runValuesFunction · 0.70
runValuesUncachedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected