Skip to content

doc: is the stability guarantee of err.code documented anywhere? #23975

Description

@joyeecheung

Surprisingly I cannot find in any significant places in https://github.com/nodejs/node/blob/master/doc/api/errors.md that err.code provides a stronger stability guarantee and should be preferred over parsing err.mesage. Am I missing something?

This is something that a lot of Node.js collaborators know, I am sure, but if we don't put it in a significant place in the docs (e.g. with examples), the users may not be able to be sure about that.

cc @jasnell

Metadata

Metadata

Assignees

Labels

docIssues and PRs related to Node.js documentation.errorsIssues and PRs related to JavaScript errors originating in Node.js core.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions