• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PstFormatException

The exception that is thrown when a PST file is structurally corrupt to the point that reading cannot continue (e.g. the header cannot be parsed, or the format version is unrecognised).

Inheritance
object
Exception
PstFormatException
Implements
ISerializable
_Exception
Inherited Members
Exception.GetBaseException()
Exception.ToString()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.Message
Exception.Data
Exception.InnerException
Exception.TargetSite
Exception.StackTrace
Exception.HelpLink
Exception.Source
Exception.HResult
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.MemberwiseClone()
Namespace: DRIT.Mail.Pst.Validation
Assembly: DRIT.Mail.dll
Syntax
public class PstFormatException : Exception, ISerializable, _Exception
Remarks

This exception derives from Exception. Most read-path corruption should be collected as a ValidationIssue rather than thrown. PstFormatException is reserved for situations where there is no safe default to return and continuing would be meaningless.

Constructors

View Source

PstFormatException(ValidationIssue)

Initializes a new instance of PstFormatException from a ValidationIssue.

Declaration
public PstFormatException(ValidationIssue issue)
Parameters
Type Name Description
ValidationIssue issue

The validation issue that triggered this exception.

Remarks

This exception derives from Exception. Most read-path corruption should be collected as a ValidationIssue rather than thrown. PstFormatException is reserved for situations where there is no safe default to return and continuing would be meaningless.

View Source

PstFormatException(string)

Initializes a new instance of PstFormatException with a specified error message.

Declaration
public PstFormatException(string message)
Parameters
Type Name Description
string message

The message that describes the error.

Remarks

This exception derives from Exception. Most read-path corruption should be collected as a ValidationIssue rather than thrown. PstFormatException is reserved for situations where there is no safe default to return and continuing would be meaningless.

View Source

PstFormatException(string, Exception)

Initializes a new instance of PstFormatException with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public PstFormatException(string message, Exception innerException)
Parameters
Type Name Description
string message

The error message that explains the reason for the exception.

Exception innerException

The exception that is the cause of the current exception.

Remarks

This exception derives from Exception. Most read-path corruption should be collected as a ValidationIssue rather than thrown. PstFormatException is reserved for situations where there is no safe default to return and continuing would be meaningless.

Properties

View Source

Issue

The validation issue that triggered this exception, if available.

Declaration
public ValidationIssue Issue { get; }
Property Value
Type Description
ValidationIssue
Remarks

This exception derives from Exception. Most read-path corruption should be collected as a ValidationIssue rather than thrown. PstFormatException is reserved for situations where there is no safe default to return and continuing would be meaningless.

Implements

ISerializable
_Exception
  • View Source
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX