Internal Should not be instantiated by the user.
Private Readonly #causesPrivate Readonly #partialThe name of the error. This is always 'InsertManyError'.
Optional stackStatic Optional prepareOptional override for formatting stack traces
Static stackStatic capture
Overview
Represents an error that occurred during a (potentially paginated)
insertManyoperation on a Collection.Contains the inserted IDs of the documents that were successfully inserted, as well as the cumulative errors that occurred during the operation.
If the operation was ordered, the
insertedIdswill be in the same order as the documents that were attempted to be inserted.Example
Collections vs Tables
There is a sister TableInsertManyError class that is used for
insertManyoperations on tables. It's identical in structure, but uses the appropriate SomeRow type for the IDs.See