Table of Contents

PstFileException Class

Definition

Namespace
Bodu.IO.Pst
Assembly
Bodu.IO.Pst.dll
Package
Bodu.IO.Pst 0.7.1
Source
PstFileException.cs

Represents an error raised while reading a PST file. Serves as the base of the library's exception hierarchy.

public class PstFileException : Exception, ISerializable
Inheritance
PstFileException
Implements
Derived
Inherited Members
Extension Methods

Constructors

PstFileException()

Initializes a new instance of the PstFileException class.

public PstFileException()

PstFileException(string?)

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

public PstFileException(string? message)

Parameters

message string

The message that describes the error.

PstFileException(string?, PstFileError)

Initializes a new instance of the PstFileException class with a message and an error category.

public PstFileException(string? message, PstFileError error)

Parameters

message string

The message that describes the error.

error PstFileError

The error category.

PstFileException(string?, PstFileError, Exception?)

Initializes a new instance of the PstFileException class with a message, an error category, and the exception that caused it.

public PstFileException(string? message, PstFileError error, Exception? innerException)

Parameters

message string

The message that describes the error.

error PstFileError

The category of container defect the exception reports.

innerException Exception

The exception that is the cause of the current exception.

PstFileException(string?, Exception?)

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

public PstFileException(string? message, Exception? innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that caused this error.

PstFileException(string?, Exception?, PstFileError)

Initializes a new instance of the PstFileException class with a message, an inner exception, and an error category.

public PstFileException(string? message, Exception? innerException, PstFileError error)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that caused this error.

error PstFileError

The error category.

Properties

Error

Gets the category of the failure, so callers can distinguish a missing object from structural corruption without parsing messages.

public PstFileError Error { get; }

Property Value

PstFileError

The error category; None when the throw site recorded none.

Applies to

ProductVersions
.NET8, 10