const classafMongo::MongoCmdErr

sys::Obj
  sys::Err
    afMongo::MongoErr
      afMongo::MongoCmdErr

Wraps errors returned from a MongoDB Cmd.

code

Source

Int? code()

Returns the first code in the list of Mongo errors, if it exists.

errmsg

Source

Str? errmsg()

Returns the first errmsg in the list of Mongo errors, if it exists.

errs

Source

const Str:Obj?[] errs := [Str:Obj?][,]

The list of errors returned by MongoDB.

make

Source

new make(Str msg, Str:Obj?[] errs, Err? cause := null)

Creates a MongoCmdErr.