Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: Fix exception section title #33551

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/web/api/audiodata/audiodata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ new AudioData(init)
- `transfer`
- : An array of {{jsxref("ArrayBuffer")}}s that `AudioData` will detach and take ownership of. If the array contains the {{jsxref("ArrayBuffer")}} backing `data`, `AudioData` will use that buffer directly instead of copying from it.

## Exceptions
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if `init` is in an incorrect format.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/bluetooth/getavailability/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ A {{JSxRef("Promise")}} that resolves with a {{JSxRef("Boolean")}}.
The {{JSxRef("Promise")}} will resolve with a value of `false` if access is disallowed by [`Permissions-Policy: bluetooth`](/en-US/docs/Web/HTTP/Headers/Permissions-Policy/bluetooth), if the user has configured the browser to always resolve with `false`, or if the device does not have a Bluetooth adapter.
Otherwise it will resolve with `true`.

## Exceptions
### Exceptions

None.

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/bluetooth/getdevices/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ None.

A {{JSxRef("Promise")}} that resolves with an array of {{DOMxRef("BluetoothDevice")}} objects.

## Exceptions
### Exceptions

- `SecurityError` {{domxref("DOMException")}}
- : Thrown if this operation is not permitted in this context due to [security concerns](/en-US/docs/Web/API/Web_Bluetooth_API#security_considerations), such as being called when access to the current document is blocked by the [Permissions Policy](/en-US/docs/Web/HTTP/Permissions_Policy) directive {{HTTPHeader("Permissions-Policy/bluetooth","bluetooth")}}.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/characterdata/deletedata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ characterData.deleteData(offset, count)

None.

## Exceptions
### Exceptions

- `IndexSizeError` {{domxref("DOMException")}}
- : Thrown if `offset` is greater than the length of the contained data.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/characterdata/insertdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ characterData.insertData(offset, data)

None.

## Exceptions
### Exceptions

- `IndexSizeError` {{domxref("DOMException")}}
- : Thrown if offset is negative or greater than the length of the contained data.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/characterdata/replacedata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ characterData.replaceData(offset, count, data)

None.

## Exceptions
### Exceptions

- `IndexSizeError` {{domxref("DOMException")}}
- : Thrown if `offset` or `count` is negative or `offset` is greater than the length of the contained data.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/characterdata/substringdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ and extending for a given number of characters afterwards.

A string with the substring.

## Exceptions
### Exceptions

- `IndexSizeError` {{domxref("DOMException")}}
- : Thrown if `offset` + `count` is larger than the length of the contained data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ new CompressionStream(format)
- `"deflate-raw"`
- : Compresses the stream using the [DEFLATE](https://www.rfc-editor.org/rfc/rfc1951) algorithm without a header and trailing checksum.

## Exceptions
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if the format passed to the constructor is not supported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ new DecompressionStream(format)
- `"deflate-raw"`
- : Decompress the stream using the [DEFLATE](https://www.rfc-editor.org/rfc/rfc1951) algorithm without a header and trailing checksum.

## Exceptions
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if the format passed to the constructor is not supported.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ readAsArrayBuffer(blob)

An {{jsxref("ArrayBuffer")}} representing the file's data.

## Exceptions
### Exceptions

The following exceptions can be raised by this method:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ readAsBinaryString(Blob)

A string representing the input data.

## Exceptions
### Exceptions

- `NotFoundError` {{domxref("DOMException")}}
- : Thrown if the resource represented by the DOM {{DOMxRef("File")}} or {{DOMxRef("Blob")}} cannot be found, e.g. because it has been erased.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ readAsDataURL(Blob)

A string representing the input data as a data URL.

## Exceptions
### Exceptions

The following exceptions can be raised by this method:

Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/filereadersync/readastext/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ readAsText(Blob, encoding)

A string representing the input data.

## Exceptions
### Exceptions

The following exceptions can be raised by this method:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ new MediaStreamTrackGenerator(options)
- `"video"`
- : Specifies that the stream accepts {{domxref("VideoTrack")}} objects.

## Exceptions
### Exceptions

- {{jsxref("TypeError")}}
- : Thrown if `init.kind` is not `"video"` or `"audio"`.
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/ndefreader/scan/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ scan(options)
A {{JSxRef("Promise")}} that resolves immediately after
scheduling read operations for the NFC adapter.

## Exceptions
### Exceptions

This method doesn't throw exceptions; instead, it rejects the returned promise,
passing a {{domxref("DOMException")}} whose `name` is one of the
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/ndefreader/write/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ write(message, options)

A {{JSxRef("Promise")}} that either resolves when a message has been written to the tag or rejects if a hardware or permission error is encountered.

## Exceptions
### Exceptions

This method doesn't throw exceptions; instead, it rejects the returned promise,
passing a {{domxref("DOMException")}} whose `name` is one of the
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/ndefrecord/torecords/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ None.

A list of {{DOMxRef("NDEFRecord")}}s.

## Exceptions
### Exceptions

- `NotSupported` {{domxref("DOMException")}}
- : Indicates that the {{Glossary("User Agent")}} does not know how to parse this combination of
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/node/removechild/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ removeChild(child)
- `child`
- : A {{domxref("Node")}} that is the child node to be removed from the DOM.

### Exception
### Exceptions

- `NotFoundError` {{domxref("DOMException")}}
- : Thrown if the `child` is not a child of the node.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ blendEquation(mode)
- `gl.MIN`: Minimum of source and destination
- `gl.MAX`: Maximum of source and destination

### Exception
### Exceptions

If _mode_ is not one of the three possible values, a
`gl.INVALID_ENUM` error is thrown.
Expand Down