Skip to main content
Module

x/web_bson/src/error.ts

web_bson is a fork from mongodb/js-bson
Go to Latest
File
/** @public */export class BSONError extends Error { constructor(message?: string) { super(message); Object.setPrototypeOf(this, BSONError.prototype); }
get name(): string { return "BSONError"; }}
/** @public */export class BSONTypeError extends TypeError { constructor(message?: string) { super(message); Object.setPrototypeOf(this, BSONTypeError.prototype); }
get name(): string { return "BSONTypeError"; }}