Class
SinterInsertManyError
insertMany failed partway. The documents before failedIndex were
inserted and stay committed.
class SinterInsertManyError extends SinterServerErrorDefined in packages/driver/src/errors.ts:199
Hierarchy
- Error
- SinterError
- SinterServerError
- SinterInsertManyError
- SinterServerError
- SinterError
Constructors#
constructor
#new SinterInsertManyError(
serverError: SinterServerError,
failedIndex: number,
insertedIds: readonly CustomId[],
)Defined in packages/driver/src/errors.ts:205
Overrides SinterServerError.constructor
Properties#
code
#readonly code: SinterErrorCodeA stable identifier for the kind of failure; see SinterErrorCode.
Inherited from SinterServerError.code
Defined in packages/driver/src/errors.ts:58
details
#readonly details: Document | undefinedExtra structured information from the server, if any.
Inherited from SinterServerError.details
Defined in packages/driver/src/errors.ts:183
failedIndex
#readonly failedIndex: numberThe position, in the input array, of the document that failed.
Defined in packages/driver/src/errors.ts:201
insertedIds
#readonly insertedIds: readonly CustomId[]The _id of every document that was inserted before the failure.
Defined in packages/driver/src/errors.ts:203
retryable
#readonly retryable: booleanWhether the server says the same request may succeed if retried. false
unless stated.
Inherited from SinterServerError.retryable
Defined in packages/driver/src/errors.ts:181
serverErrorName
#readonly serverErrorName: string | undefinedThe server's name for the error, such as DuplicateKey.
Inherited from SinterServerError.serverErrorName
Defined in packages/driver/src/errors.ts:176
wireCode
#readonly wireCode: number | undefinedThe numeric error code from the wire protocol, if the server sent one.
Inherited from SinterServerError.wireCode
Defined in packages/driver/src/errors.ts:174