octobercms/october · error · Error

Property

Error message

${errorMessage} Property: ${propertyName}

What it means

Generic sentinel in ValidatorSet's private #throwError: it formats errors from schema parsing (#makeValidators) and value validation (validate) by appending the offending property name to the caller's message. Seeing this error means the Inspector property schema for the named property is invalid — the actual cause is described in the message prefix (e.g. unknown validator type or invalid required/validationPattern usage).

Solutions

  1. Read the message prefix to identify the schema problem, then correct that property's definition in the Inspector configuration
  2. Verify the property uses either the legacy required/validationPattern/validationMessage syntax or the modern validators array, not a malformed mix
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validatorset.js:13 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21). Data as JSON: /api/errors/2418bf261c5abc22. Report an issue: GitHub.

Appendix: source

Thrown at modules/backend/vuecomponents/inspector/assets/js/classes/validatorset.js:13

import validators from './validators/index.js';

export class ValidatorSet {
    #validators = [];
    #propertyName;

    constructor(options, propertyName) {
        this.#propertyName = propertyName;
        this.#makeValidators(options);
    }

    #throwError(errorMessage) {
        throw new Error(errorMessage + ' Property: ' + this.#propertyName);
    }

    #makeValidators(options) {
        // Handle legacy validation syntax properties:
        //
        // - required
        // - validationPattern
        // - validationMessage

        if ((options.required !== undefined ||
            options.validationPattern !== undefined ||
            options.validationMessage !== undefined) &&
            options.validation !== undefined) {
            this.#throwError('Legacy and new validation syntax should not be mixed.');
        }

        if (options.required !== undefined && options.required) {
            var validator = new validators.required(this.#propertyName, {

View on GitHub (pinned to b608633a7e)