const classafMongo::MongoErr

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

Models an error as returned from a MongoDB Server.

code

Source

Int? code()

Returns the code, if it exists.

codeName

Source

Str? codeName()

Returns the codeName, if it exists.

errDoc

Source

const Str:Obj? errDoc

The error response returned by MongoDB.

errLabels

Source

Str[] errLabels()

Returns the errorLabels list.

errMsg

Source

Str? errMsg()

Returns the errmsg, if it exists.

make

Source

new make(Str msg, Str:Obj? errDoc, Err? cause := null)

Creates a MongoCmdErr.