diff --git a/files/en-us/web/api/midioutput/send/index.md b/files/en-us/web/api/midioutput/send/index.md index 4bbac4df5de7f04..c8fed95bea76546 100644 --- a/files/en-us/web/api/midioutput/send/index.md +++ b/files/en-us/web/api/midioutput/send/index.md @@ -32,7 +32,7 @@ None ({{jsxref("undefined")}}). - {{jsxref("TypeError")}} - : Thrown if `data` is not a valid sequence, or does not contain a valid MIDI message. -- `InvalidAccessError` {{domxref("DOMException")}} +- `NotAllowedError` {{domxref("DOMException")}} - : Thrown if `data` is a system exclusive message, and the {{domxref("MIDIAccess")}} did not enable exclusive access. - `InvalidStateError` {{domxref("DOMException")}} - : Thrown if the port is disconnected. diff --git a/files/en-us/web/api/midiport/open/index.md b/files/en-us/web/api/midiport/open/index.md index 7a1e3a25392da84..79f09e4b576cb20 100644 --- a/files/en-us/web/api/midiport/open/index.md +++ b/files/en-us/web/api/midiport/open/index.md @@ -30,7 +30,7 @@ A {{jsxref("Promise")}} which resolves once access to the port has been successf ### Exceptions -- `InvalidAccessError` {{domxref("DOMException")}} +- `NotAllowedError` {{domxref("DOMException")}} - : The promise is rejected with this error if the port is unavailable and cannot be opened. ## Examples