The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend theBulkWriterErrorclass.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class BulkWriterError (7.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [7.11.0 (latest)](/nodejs/docs/reference/firestore/latest/firestore/bulkwritererror)\n- [7.9.0](/nodejs/docs/reference/firestore/7.9.0/firestore/bulkwritererror)\n- [7.7.0](/nodejs/docs/reference/firestore/7.7.0/firestore/bulkwritererror)\n- [7.6.0](/nodejs/docs/reference/firestore/7.6.0/firestore/bulkwritererror)\n- [7.5.0](/nodejs/docs/reference/firestore/7.5.0/firestore/bulkwritererror)\n- [7.4.0](/nodejs/docs/reference/firestore/7.4.0/firestore/bulkwritererror)\n- [7.3.1](/nodejs/docs/reference/firestore/7.3.1/firestore/bulkwritererror)\n- [7.2.0](/nodejs/docs/reference/firestore/7.2.0/firestore/bulkwritererror)\n- [7.1.0](/nodejs/docs/reference/firestore/7.1.0/firestore/bulkwritererror)\n- [6.4.1](/nodejs/docs/reference/firestore/6.4.1/firestore/bulkwritererror)\n- [6.3.0](/nodejs/docs/reference/firestore/6.3.0/firestore/bulkwritererror)\n- [6.0.0](/nodejs/docs/reference/firestore/6.0.0/firestore/bulkwritererror)\n- [5.0.2](/nodejs/docs/reference/firestore/5.0.2/firestore/bulkwritererror)\n- [4.15.1](/nodejs/docs/reference/firestore/4.15.1/firestore/bulkwritererror)\n- [4.14.2](/nodejs/docs/reference/firestore/4.14.2/firestore/bulkwritererror)\n- [4.9.8](/nodejs/docs/reference/firestore/4.9.8/firestore/bulkwritererror) \nThe error thrown when a BulkWriter operation fails.\n\nBulkWriterError \n\nInheritance\n-----------\n\nError \\\u003e BulkWriterError\n\nPackage\n-------\n\n[@google-cloud/firestore](../overview.html)\n\nRemarks\n-------\n\nThe constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `BulkWriterError` class.\n\nProperties\n----------\n\n### code\n\n readonly code: GrpcStatus;\n\nThe status code of the error.\n\n### documentRef\n\n readonly documentRef: firestore.DocumentReference\u003cany, any\u003e;\n\nThe document reference the operation was performed on.\n\n### failedAttempts\n\n readonly failedAttempts: number;\n\nHow many times this operation has been attempted unsuccessfully.\n\n### message\n\n readonly message: string;\n\nThe error message of the error.\n\n### operationType\n\n readonly operationType: 'create' | 'set' | 'update' | 'delete';\n\nThe type of operation performed."]]