Table of Contents

BiffUnsupportedVersionException Class

Definition

Namespace
Bodu.IO.Biff
Assembly
Bodu.IO.Biff.dll
Package
Bodu.IO.Biff 1.0.0
Source
BiffUnsupportedVersionException.cs

The exception thrown when a stream is well-formed BIFF but encoded in a version the codec does not process: a BIFF2, BIFF3, or BIFF4 beginning-of-file record, or a BOF whose version field is neither BIFF5 nor BIFF8.

public sealed class BiffUnsupportedVersionException : NotSupportedException, ISerializable
Inheritance
BiffUnsupportedVersionException
Implements
Inherited Members
Extension Methods

Remarks

The distinction from BiffFormatException is deliberate: the data is not corrupt, it is simply older (or newer) than the two versions the codec implements.

Constructors

BiffUnsupportedVersionException()

Initializes a new instance of the BiffUnsupportedVersionException class.

public BiffUnsupportedVersionException()

BiffUnsupportedVersionException(string?)

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

public BiffUnsupportedVersionException(string? message)

Parameters

message string

The message that describes the error.

BiffUnsupportedVersionException(string?, Exception?)

Initializes a new instance of the BiffUnsupportedVersionException class with the specified message and inner exception.

public BiffUnsupportedVersionException(string? message, Exception? innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception.

BiffUnsupportedVersionException(string?, ushort)

Initializes a new instance of the BiffUnsupportedVersionException class with the specified message and the raw version marker that was encountered.

public BiffUnsupportedVersionException(string? message, ushort rawVersion)

Parameters

message string

The message that describes the error.

rawVersion ushort

The version value that was rejected: the vers field of a BOF record, or the record identifier of a legacy beginning-of-file record.

Properties

RawVersion

Gets the raw version marker that was rejected.

public ushort? RawVersion { get; }

Property Value

ushort?

The vers field of the BOF record, or the identifier of the legacy beginning-of-file record; null when the exception was not raised for a specific marker.

Applies to

ProductVersions
.NET8, 10