Class InvalidChunkSizeException
The exception that is thrown when the actual size of a MIDI file chunk differs from
the one declared in its header.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
[Serializable]
public sealed class InvalidChunkSizeException : MidiException, ISerializable
Remarks
Note that this exception will be thrown only if InvalidChunkSizePolicy is set to Abort for the ReadingSettings used for reading a MIDI file.
Properties
ActualSize
Gets the actual size of a chunk.
Declaration
public long ActualSize { get; }
Property Value
Type | Description |
---|---|
long |
ChunkId
Gets the ID of a chunk caused this exception.
Declaration
public string ChunkId { get; }
Property Value
Type | Description |
---|---|
string |
ExpectedSize
Gets the expected size of a chunk written in its header.
Declaration
public long ExpectedSize { get; }
Property Value
Type | Description |
---|---|
long |
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 . |