---
Product: Aspose.Email
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/email/net/cfb-exception
---

# CfbException

## Overview

`CfbException` is the exception type raised by the CFB reader and writer when a Compound File Binary document is malformed, truncated, or violates the MS-CFB specification. It inherits from the .NET base `Exception` class. Catch `CfbException` around calls to `CfbReader`, `CfbDocument`, and `CfbWriter` to recover from format errors without crashing.

## Constructors

| Signature | Description |
|-----------|-------------|
| `CfbException(message: string)` | Creates a new `CfbException` with the specified parameters. |

## See Also
- [Aspose.Email for .NET — Enterprise API Reference](https://reference.aspose.com/email/net/)