---
name: "mongoc_bulkwriteexception_writeerrors"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_bulkwriteexception_writeerrors"
---

# mongoc\_bulkwriteexception\_writeerrors(3)

## SYNOPSIS

```
const bson_t *
mongoc_bulkwriteexception_writeerrors (const mongoc_bulkwriteexception_t *self);
```

## DESCRIPTION

Returns a BSON document mapping model indexes to write errors. Example:

```
{
  "0" : { "code" : 123, "message" : "foo", "details" : {  } },
  "1" : { "code" : 456, "message" : "bar", "details" : {  } }
}
```

Returns an empty document if there are no write errors.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
