Skip to content

doc: add DOMException section to errors API reference - #65206

Open
zeexzeex wants to merge 4 commits into
nodejs:mainfrom
zeexzeex:doc/domexception-errors-page
Open

doc: add DOMException section to errors API reference#65206
zeexzeex wants to merge 4 commits into
nodejs:mainfrom
zeexzeex:doc/domexception-errors-page

Conversation

@zeexzeex

@zeexzeex zeexzeex commented Aug 11, 2026

Copy link
Copy Markdown

Fixes #40789

Adds a ## Class: DOMException section to doc/api/errors.md, following the
AssertionError pattern of listing the class on the Errors page with a
cross-link to the existing Globals page entry.

Also documents:

  • Web IDL / MDN references for name and numeric code
  • That web-platform APIs may throw DOMException while some Node.js APIs
    throw a native AbortError with code 'ABORT_ERR'
  • That err?.name === 'AbortError' covers both cases

Builds on the previous closed attempt in #64236 and incorporates the
outstanding review suggestion from @aduh95.

Document DOMException on the Errors page (with a Globals cross-link)
and clarify AbortError vs DOMException for AbortSignal users.
Builds on nodejs#64236 review feedback. Fixes nodejs#40789.

Signed-off-by: Avocado <ujubongbong@gmail.com>
Signed-off-by: Avocado <ujubongbong@gmail.com>
@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core. labels Aug 11, 2026
@zeexzeex
zeexzeex force-pushed the doc/domexception-errors-page branch from 2e5f59b to 8c36fda Compare August 11, 2026 06:20
zeexzeex and others added 2 commits August 11, 2026 17:14
Fix ABORT_ERR reference order for nodejs-links.

Signed-off-by: Avocado <ujubongbong@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@zeexzeex
zeexzeex force-pushed the doc/domexception-errors-page branch from c158dcc to f790e90 Compare August 11, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. errors Issues and PRs related to JavaScript errors originated in Node.js core.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc: DOMException missing from “Errors” API reference docs page

2 participants