Skip to content

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

Open
zeexzeex wants to merge 1 commit into
nodejs:mainfrom
zeexzeex:doc/domexception-errors-page
Open

doc: add DOMException section to errors API reference#65206
zeexzeex wants to merge 1 commit 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.

@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 2 times, most recently from c158dcc to f790e90 Compare August 11, 2026 08:15
@trivikr

trivikr commented Aug 24, 2026

Copy link
Copy Markdown
Member

@zeexzeex The merge commits don't work with node.js tooling. Can you please rebase?

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>
@zeexzeex
zeexzeex force-pushed the doc/domexception-errors-page branch from f790e90 to 3dd99a3 Compare August 24, 2026 01:48
@zeexzeex

Copy link
Copy Markdown
Author

Thanks for the review, @trivikr. Rebased.

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

3 participants