---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/diagnosticbag
---

# DiagnosticBag

## Overview

`DiagnosticBag` is a class in Aspose.Cells FOSS for C++.

Represents diagnostic bag.

This class declares 2 methods for DiagnosticBag objects in C++ programs.
Available methods include: `Add`, `GetEntries`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetEntries()` → `std::vector<DiagnosticEntry>` | Gets the entries. |
| `Add(entry: DiagnosticEntry)` | Adds the specified item. The entry. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)