Skip to content

Track DOMException.name instead of DOMException.code #10501

Description

@behnam-oneschema

Problem Statement

DOMException.code is a deprecated feature. Reference: https://developer.mozilla.org/en-US/docs/Web/API/DOMException

The codes are also hardly practical, considering only the numeric value of them is shown in the Sentry UI:
image

Solution Brainstorm

DOMException.name is the current best-practice in identifying these errors, and is supported widely across browsers:

image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions