PstFileException Class
Definition
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
messagestringThe 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
messagestringThe message that describes the error.
errorPstFileErrorThe 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
messagestringThe message that describes the error.
errorPstFileErrorThe category of container defect the exception reports.
innerExceptionExceptionThe 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
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
messagestringThe message that describes the error.
innerExceptionExceptionThe exception that caused this error.
errorPstFileErrorThe 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
| Product | Versions |
|---|---|
| .NET | 8, 10 |