Table of Contents

OutlookPstFormatException Class

Definition

Namespace
Bodu.Formats.Outlook
Assembly
Bodu.Formats.Outlook.Pst.dll
Package
Bodu.Formats.Outlook.Pst 1.3.0
Source
OutlookPstFormatException.cs

Represents an error raised when a mail store (a .pst file) is structurally invalid or violates the Outlook personal-folders messaging conventions (MS-PST).

public sealed class OutlookPstFormatException : OutlookFormatException, ISerializable
Inheritance
OutlookPstFormatException
Implements
Inherited Members
Extension Methods

Remarks

This exception reports messaging-level problems - a folder or message object that violates the format's structural conventions, a table row that does not reference a valid node, a malformed name-to-id map, a tripped limit - and wraps container-level ones. A source that is not a PST file, a variant the reader does not support, and corruption in the container's pages, blocks, B-trees, heaps, or tables surface as this exception too, with the Bodu.IO.Pst PstFileException (a PstFileFormatException, PstUnsupportedFormatException, or PstNodeNotFoundException, whose Error names the category) as the inner exception.

A single handler for OutlookFormatException therefore catches every failure to read either Outlook format, as OutlookFormatException documents.

Constructors

OutlookPstFormatException()

Initializes a new instance of the OutlookPstFormatException class.

public OutlookPstFormatException()

OutlookPstFormatException(string?)

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

public OutlookPstFormatException(string? message)

Parameters

message string

The message that describes the error.

OutlookPstFormatException(string?, Exception?)

Initializes a new instance of the OutlookPstFormatException class with a message and an inner exception.

public OutlookPstFormatException(string? message, Exception? innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that caused this error.

Applies to

ProductVersions
.NET8, 10