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)
insertMany
operation on a Table.Contains the inserted primary keys of the documents that were successfully inserted, as well as the cumulative errors that occurred during the operation.
If the operation was ordered, the
insertedIds
will be in the same order as the documents that were attempted to be inserted.Example
Collections vs Tables
There is a sister CollectionInsertManyError class that is used for
insertMany
operations on collections. It's identical in structure, but uses the appropriate SomeId type for the IDs.See