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

# PdfException

## Overview

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

Represents errors that occur during PDF application execution.

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

## Methods

| Signature | Description |
|-----------|-------------|
| `PdfException()` | Initializes a new instance of the PdfException class. |
| `PdfException(message: string)` | Initializes a new instance of the PdfException class with a message. |
| `PdfException(message: string, innerException: Exception)` | Initializes a new instance of the PdfException class with a message and inner exception. |
| `PdfException(innerException: Exception)` | Initializes a new instance of the PdfException class wrapping the inner exception. |
| `GenerateCrashReport(options: CrashReportOptions)` | Write a crash report to disk per options. |

## See Also

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