CompoundFileException Class
Definition
The base class for exceptions raised by the compound-file reader, writer, and object model.
public class CompoundFileException : Exception, ISerializable
- Inheritance
-
CompoundFileException
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Catch this type to handle any compound-file failure uniformly. The concrete subclasses narrow the cause: CompoundFileFormatException reports structural failures encountered while reading, CompoundFileSerializationException reports authoring and write-time failures, and CompoundStreamNotFoundException reports a missing named stream or storage.
Constructors
CompoundFileException()
Initializes a new instance of the CompoundFileException class.
public CompoundFileException()
CompoundFileException(string)
Initializes a new instance of the CompoundFileException class with the specified message.
public CompoundFileException(string message)
Parameters
messagestringA message that describes the failure.
CompoundFileException(string, Exception)
Initializes a new instance of the CompoundFileException class with the specified message and a reference to the underlying cause.
public CompoundFileException(string message, Exception innerException)
Parameters
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |