Skip to content

Parse.Error Inconsistencies #1269

Open
Open
@mtrezza

Description

@mtrezza

New Issue Checklist

Issue Description

There are inconsistencies between the Parse.Errors

  • as defined in the Parse JS SDK
    • some errors are defined in the JS SDK but not described in the docs
  • as described in the docs
    • some errors are described in the docs but not defined in the JS SDK (e.g. they were relevant for hosted Parse.com)
  • as used in Parse Server
    • some errors are not defined in the JS SDK but composed in code
    • some errors show a different error code in the docs than as they are defined in the JS SDK
    • some errors thrown are TypeError or just JS Error instead of ParseError

Problems:

  • confusion on developer side
  • difficult to look for a free error code; one has to look into several repos to ensure an error code is unused

Suggested Solution

The error codes should be consolidated and referenced from one single source. Ideally, the error codes should be moved into their own repo so that they can be referenced from every other repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions