MCPcopy
hub / github.com/prisma/prisma / isDriverAdapterError

Function isDriverAdapterError

packages/driver-adapter-utils/src/error.ts:13–15  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

11}
12
13export function isDriverAdapterError(error: any): error is DriverAdapterError {
14 return error['name'] === 'DriverAdapterError' && typeof error['cause'] === 'object'
15}

Callers 4

rethrowAsUserFacingFunction · 0.90
wrapAsyncFunction · 0.90
wrapSyncFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected