Skip to main content

NEEDS_CLASS_NAME_CODE

Constant NEEDS_CLASS_NAME_CODE 

Source
pub const NEEDS_CLASS_NAME_CODE: ErrorCode;
Expand description

135, type <T> needs a class name (SchemaController.js:508, SchemasRouter.js:90).

Named constants rather than the variants inline, because these two numbers have no name in src/Error.js or in the parse SDK. Upstream throws them as new Parse.Error(135, ...), so there is no upstream symbol to match against and a reader has nothing to check a bare ErrorCode::MissingClassName against. The name here is ours, taken from the message.

spec/Schema.spec.js asserts on the numbers directly (:575, :590, :620, :650), which is what makes a substitution wire-visible: an earlier version of this file used IncorrectType (111) and InvalidKeyName (105) on the stated belief that no variant existed for either. Both have existed since the codes were first enumerated (parse_rust_core::ErrorCode). Do not substitute a named neighbour again.