16 lines
563 B
TypeScript
16 lines
563 B
TypeScript
import { ErrorWithBatchIndex } from './ErrorWithBatchIndex';
|
|
type KnownErrorParams = {
|
|
code: string;
|
|
clientVersion: string;
|
|
meta?: Record<string, unknown>;
|
|
batchRequestIdx?: number;
|
|
};
|
|
export declare class PrismaClientKnownRequestError extends Error implements ErrorWithBatchIndex {
|
|
code: string;
|
|
meta?: Record<string, unknown>;
|
|
clientVersion: string;
|
|
batchRequestIdx?: number;
|
|
constructor(message: string, { code, clientVersion, meta, batchRequestIdx }: KnownErrorParams);
|
|
get [Symbol.toStringTag](): string;
|
|
}
|
|
export {};
|