---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/TaggedException
---

# TaggedException

## Overview

`TaggedException` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `Exception`.

Exception thrown when a tagged PDF structure operation violates PDF spec constraints.

This class provides 2 methods for working with TaggedException objects in .NET programs.
Available methods include: `TaggedException`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.

## Methods

| Signature | Description |
|-----------|-------------|
| `TaggedException(message: string)` | Creates a new TaggedException with the specified message. |
| `TaggedException(message: string, innerException: Exception)` | Creates a new TaggedException with a message and inner exception. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)