16 lines
492 B
TypeScript
16 lines
492 B
TypeScript
import { type RustLog } from './log';
|
|
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 declare class PrismaClientRustError extends Error {
|
|
clientVersion: string;
|
|
private _isPanic;
|
|
constructor({ clientVersion, error }: PrismaClientRustErrorArgs);
|
|
get [Symbol.toStringTag](): string;
|
|
isPanic(): boolean;
|
|
}
|