public static extern string Pm_GetErrorText(PmError errnum);
public MidiException(PmError errorType, string message, Exception innerException) : base(message, innerException) { error_type = errorType; }
public MidiException(PmError errorType, string message) : this(errorType, message, null) { }