Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mongo/src/error.ts>MongoServerError

MongoDB driver for Deno
Extremely Popular
Go to Latest
class MongoServerError
implements MongoErrorInfo
extends MongoError
import { MongoServerError } from "https://deno.land/x/mongo@v0.31.1/src/error.ts";

A class representation of an error returned by MongoDB server.

Constructors

new
MongoServerError(info: MongoErrorInfo)

Properties

code: number
codeName: string
errmsg: string
ok: 0