MCPcopy Create free account
hub / github.com/BabylonSocial/babylon / handleDatabaseError

Function handleDatabaseError

packages/api/src/error-handler.ts:479–548  ·  view source on GitHub ↗

* Handle database-specific errors * Uses PostgreSQL error codes (23xxx series for integrity constraints)

(error: Error & { code?: string })

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

errorHandlerFunction · 0.85

Calls 2

warnMethod · 0.80
jsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…