swc/bundler/tests/.cache/deno/130b0b16b08e2328afef5d1c788e881e0381f6a8.ts
강동윤 bbaf619f63
fix(bundler): Fix bugs (#1437)
swc_bundler:
 - [x] Fix wrapped esms. (denoland/deno#9307)
 - [x] Make test secure.
2021-03-02 17:33:03 +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)}`);
}
}