---
name: "mongoc_gridfs_bucket_stream_error"
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_gridfs_bucket_stream_error"
---

# mongoc\_gridfs\_bucket\_stream\_error(3)

## SYNOPSIS

```
bool
mongoc_gridfs_bucket_stream_error (mongoc_stream_t *stream,
                                   bson_error_t *error);
```

## PARAMETERS

- •

  **stream**: A *mongoc\_stream\_t* created by *mongoc\_gridfs\_bucket\_open\_upload\_stream()*, *mongoc\_gridfs\_bucket\_open\_upload\_stream\_with\_id()*, or *mongoc\_gridfs\_bucket\_open\_download\_stream()*.

- •

  **error**: A *bson\_error\_t* to receive the possible error.

## DESCRIPTION

Retrieves an error for a GridFS stream if one exists.

## RETURNS

True if an error occurred on the stream and sets **error**. False otherwise.

**SEE ALSO:**

```
mongoc_gridfs_bucket_open_upload_stream()
```

```
mongoc_gridfs_bucket_open_upload_stream_with_id()
```

```
mongoc_gridfs_bucket_open_download_stream()
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
