Skip to main content
Glama

Prisma MCP Server

Official
by prisma
PrismaClientRustError.ts840 B
import { getBacktrace, isPanic, type RustLog } from './log' import { setClassName } from './setClassName' export type PrismaClientRustErrorArgs = { clientVersion: string error: RustLog } /** * A generic Prisma Client Rust error. * This error is being exposed via the `prisma.$on('error')` interface */ export class PrismaClientRustError extends Error { clientVersion: string private _isPanic: boolean constructor({ clientVersion, error }: PrismaClientRustErrorArgs) { const backtrace = getBacktrace(error) super(backtrace ?? 'Unknown error') this._isPanic = isPanic(error) this.clientVersion = clientVersion } get [Symbol.toStringTag]() { return 'PrismaClientRustError' } public isPanic(): boolean { return this._isPanic } } setClassName(PrismaClientRustError, 'PrismaClientRustError')

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server