Skip to content

fix: export MidiPairingInfoRemovedException#162

Merged
mortenboye merged 1 commit into
InvisibleWrench:masterfrom
elasticdog:push-kqzzvrozmtwu
Jul 20, 2026
Merged

fix: export MidiPairingInfoRemovedException#162
mortenboye merged 1 commit into
InvisibleWrench:masterfrom
elasticdog:push-kqzzvrozmtwu

Conversation

@elasticdog

Copy link
Copy Markdown
Contributor

#161 introduced MidiPairingInfoRemovedException, thrown from the BLE transport when iOS reports CBErrorPeerRemovedPairingInformation, but the new type wasn't added to flutter_midi_command's export list. Apps depending only on the main package can't catch it by name, even though this is the exact case where an app wants to show specific guidance ("forget the device in Bluetooth settings, then reconnect"). Instead, they have to fall back to matching the base MidiConnectionException.

This adds the type to the existing show combinator.

Found while adopting the typed exception hierarchy in an app that migrated from 1.0.2 to 1.0.6. Thanks for the staged-connect and teardown work in #161, it let us delete a pile of downstream defensive code.

The type was added to the platform interface in commit 3c28f4e and is
thrown from the BLE transport's pairing stage, but it was left out of
the main package's export list, so apps depending only on
flutter_midi_command cannot catch it by name and must fall back to the
base MidiConnectionException.
@mortenboye
mortenboye merged commit 0174d8d into InvisibleWrench:master Jul 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants