Table of Contents

CompoundFileFormatException Class

Definition

Namespace
Bodu.IO.Compound
Assembly
Bodu.IO.Compound.dll
Package
Bodu.IO.Compound 1.0.0
Source
CompoundFileFormatException.cs

The exception thrown when a stream cannot be interpreted as a well-formed OLE2 / Compound File Binary container.

public sealed class CompoundFileFormatException : CompoundFileException, ISerializable
Inheritance
CompoundFileFormatException
Implements
Inherited Members
Extension Methods

Remarks

This exception reports structural failures of the container itself - an invalid signature, a malformed header, a circular or out-of-range sector chain, or a corrupt directory - rather than any application-level format carried inside a stream. The Category classifies the failure in a message-independent way. It derives from CompoundFileException, the common base for all compound-file failures.

Constructors

CompoundFileFormatException()

Initializes a new instance of the CompoundFileFormatException class.

public CompoundFileFormatException()

CompoundFileFormatException(string)

Initializes a new instance of the CompoundFileFormatException class with the specified message.

public CompoundFileFormatException(string message)

Parameters

message string

A message that describes the structural failure.

CompoundFileFormatException(string, CompoundFileError)

Initializes a new instance of the CompoundFileFormatException class with the specified message and failure category.

public CompoundFileFormatException(string message, CompoundFileError category)

Parameters

message string

A message that describes the structural failure.

category CompoundFileError

The category that classifies the failure.

CompoundFileFormatException(string, Exception)

Initializes a new instance of the CompoundFileFormatException class with the specified message and a reference to the underlying cause.

public CompoundFileFormatException(string message, Exception innerException)

Parameters

message string

A message that describes the structural failure.

innerException Exception

The exception that is the cause of this exception.

Properties

Category

Gets the category that classifies the structural failure.

public CompoundFileError Category { get; }

Property Value

CompoundFileError

The CompoundFileError describing the failure; Unknown when unspecified.

Applies to

ProductVersions
.NET8, 10