<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDIIOErrorNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:@S@MIDIIOErrorNotification"
  },
  "title" : "MIDIIOErrorNotification"
}
-->

# MIDIIOErrorNotification

A general I/O error notification.

```
struct MIDIIOErrorNotification
```

## Topics

### Creating an error notification

[`init()`](/documentation/CoreMIDI/MIDIIOErrorNotification/init())

[`init(messageID:messageSize:driverDevice:errorCode:)`](/documentation/CoreMIDI/MIDIIOErrorNotification/init(messageID:messageSize:driverDevice:errorCode:))

### Inspecting an error notification

[`messageID`](/documentation/CoreMIDI/MIDIIOErrorNotification/messageID)

The type of message.

[`messageSize`](/documentation/CoreMIDI/MIDIIOErrorNotification/messageSize)

The size of the message.

[`driverDevice`](/documentation/CoreMIDI/MIDIIOErrorNotification/driverDevice)

The device with an I/O error.

[`errorCode`](/documentation/CoreMIDI/MIDIIOErrorNotification/errorCode)

The error code of the generated error.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)