Skip to content

feature request: rename exceptions "name" property #93

@AllanZhengYP

Description

@AllanZhengYP

Background:
JS Errors constructor takes name property. With #92, we asssign error code to name, it's good to better JS dev UX.

Issue:
SDK will override error's own name property if it exists.

Feature Requested:
To avoid overriding, we should rename name in any exceptions in model to __name and deserialize them with localName as name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions