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

# MsgException

## Overview

`MsgException` is raised when a `.msg` file violates the expected MAPI storage structure — for example when a required root storage entry is missing or a property stream is corrupt. It inherits from the .NET base `Exception` class. Catch `MsgException` around `MsgReader`, `MsgDocument`, and `MsgWriter` operations to handle format-level errors separately from I/O failures.

## Constructors

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

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