Class UnexpectedTrackChunksCountException
The exception that is thrown when count of track chunks in a MIDI file differs from
the one declared in the header chunk of this file.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
[Serializable]
public sealed class UnexpectedTrackChunksCountException : MidiException, ISerializable
Remarks
Note that this exception will be thrown only if UnexpectedTrackChunksCountPolicy is set to Abort for the ReadingSettings used for reading a MIDI file.
Properties
ActualCount
Gets the actual count of track chunks read from a MIDI file.
Declaration
public int ActualCount { get; }
Property Value
Type | Description |
---|---|
int |
ExpectedCount
Gets the expected count of track chunks read from the header chunk.
Declaration
public int ExpectedCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the SerializationInfo with information about the exception.
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentNullException | info is null . |