PdfException Class

The base class of the exceptions the library throws for the content of a document.

public class PdfException : Exception
Inheritance
Exception PdfException

Constructors

NameDescription
PdfException()Initializes a new instance of the PdfException class.
PdfException(string?)Initializes a new instance of the PdfException class with a message.
PdfException(string?, Exception?)Initializes a new instance of the PdfException class with a message and the exception that caused it.

PdfException overloads

PdfException()

PdfException.cs

Initializes a new instance of the PdfException class.

public PdfException()

PdfException(string?)

PdfException.cs

Initializes a new instance of the PdfException class with a message.

public PdfException(string? message)
Parameters
message string?
The message that describes the error.

PdfException(string?, Exception?)

PdfException.cs

Initializes a new instance of the PdfException class with a message and the exception that caused it.

public PdfException(string? message, Exception? innerException)
Parameters
message string?
The message that describes the error.
innerException Exception?
The exception that caused the error.