| Current Path : /home/deltalab/PMS/partner-manager-backend/node_modules/mongoose/node_modules/bson/src/ |
| Current File : //home/deltalab/PMS/partner-manager-backend/node_modules/mongoose/node_modules/bson/src/error.ts |
/** @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';
}
}