---
Product: Aspose.Email
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/email/python/cfberror
---

# CFBError

## Overview

`CFBError` is a class in Aspose.Email FOSS for Python.
Inherits from: `Exception`.

Raised for malformed or unsupported Compound File Binary (CFB) content.

This class is part of the public API of Aspose.Email FOSS for Python.
It can be used with other exported types in the package when working with CFBError values in your Python application.

## Examples

```python
from aspose.email_foss.cfb import CFBReader, CFBError

try:
    reader = CFBReader.from_file("corrupt.cfb")
except CFBError as e:
    print(f"CFB error: {e}")
```

## See Also

- [Aspose.Email for Python — Enterprise API Reference](https://reference.aspose.com/email/python-net/)