const classafMongo::MongoErrsys::Obj sys::Err afMongo::MongoErrModels an error as returned from a MongoDB Server.codeSource Int? code()Returns the code, if it exists.codeNameSource Str? codeName()Returns the codeName, if it exists.errDocSourceconst Str:Obj? errDocThe error response returned by MongoDB.errMsgSource Str? errMsg()Returns the errmsg, if it exists.makeSourcenew make(Str msg, Str:Obj? errDoc, Err? cause := null)Creates a MongoCmdErr.