swc/crates/swc_bundler/tests/.cache/deno/130b0b16b08e2328afef5d1c788e881e0381f6a8.ts
2021-11-09 20:42:49 +09:00

16 lines
298 B
TypeScript

// 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)}`);
}
}