Skip to main content

Module error

Module error 

Source
Expand description

Parse error codes.

Error codes are API. Every variant carries the upstream numeric code from src/Error.js, and spec/ asserts on these numbers directly. Never invent a code and never change one to a better-fitting one.

Codes extracted from the parse npm SDK bundled with parse-server 9.10.1-alpha.6, which is the same table src/Error.js re-exports.

Structs§

ParseError
A Parse error: a code plus a message, plus how much of it may be seen.
ParseErrorInfo
Out-of-band data an error carries for the server’s own use.

Enums§

ErrorCode
The upstream error code table. The discriminant is the wire value.
ErrorDetail
Whether a denial tells the client why it was denied.
ErrorOrigin
Which upstream throw an error corresponds to, and therefore which body a client sees.

Constants§

DUPLICATE_VALUE_MESSAGE
The one message a duplicate-key collision ever carries (MongoStorageAdapter.js:576-579).
PERMISSION_DENIED
createSanitizedError’s default sanitizedMessage (Error.js:13), and the whole of createSanitizedHttpError’s (Error.js:41).