MongoDatabase.getLastError

Retrieves the last error code (if any) from the database server.

Exact object format is not documented. MongoErrorDescription signature will be updated upon any issues. Note that this method will execute a query to service collection and thus is far from being "free".

struct MongoDatabase
@safe
MongoErrorDescription
getLastError
()

Return Value

Type: MongoErrorDescription

struct storing data from MongoDB db.getLastErrorObj() object

Meta