swc/crates/swc_bundler/tests/.cache/deno/130b0b16b08e2328afef5d1c788e881e0381f6a8.ts

16 lines
298 B
TypeScript
Raw Normal View History

// Loaded from https://deno.land/x/mongo@v0.20.0/src/error.ts
export interface MongoErrorInfo {
ok: 0;
errmsg: string;
code: number;
codeName: string;
}
export class MongoError extends Error {
constructor(info: MongoErrorInfo) {
super(`MongoError: ${JSON.stringify(info)}`);
}
}