Class InvalidSystemCommonEventParameterValueException
The exception that is thrown when the reading engine has encountered an invalid parameter
of a system common event.
Implements
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
[Serializable]
public sealed class InvalidSystemCommonEventParameterValueException : MidiException, ISerializable
Remarks
Note that this exception will be thrown only if InvalidSystemCommonEventParameterValuePolicy is set to Abort for the ReadingSettings used for reading a MIDI file.
Properties
ComponentName
Gets the name of MIDI Time Code event's component which value is invalid.
Declaration
public string ComponentName { get; }
Property Value
Type | Description |
---|---|
string |
ComponentValue
Gets the value of the system common event's parameter that caused this exception.
Declaration
public int ComponentValue { get; }
Property Value
Type | Description |
---|---|
int |
EventType
Gets the type of an event that caused this exception.
Declaration
public MidiEventType EventType { get; }
Property Value
Type | Description |
---|---|
MidiEventType |
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 . |