Open
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
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 JSError
instead ofParseError
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.