const classafMongo::MongoCmdErr
sys::Obj sys::Err afMongo::MongoErr afMongo::MongoCmdErr
Wraps errors returned from a MongoDB Cmd.
- code
Int? code()
Returns the first
code
in the list of Mongo errors, if it exists.- errmsg
Str? errmsg()
Returns the first
errmsg
in the list of Mongo errors, if it exists.- errs
const Str:Obj?[] errs := [Str:Obj?][,]
The list of errors returned by MongoDB.
- make
new make(Str msg, Str:Obj?[] errs, Err? cause := null)
Creates a
MongoCmdErr
.