{"record":{"id":"8bc509680d161496","repo":"octobercms/october","slug":"options-size-must-be-a-string-8bc509","errorCode":null,"errorMessage":"options.size must be a string","messagePattern":"options\\.size must be a string","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/vuecomponents/modal/assets/js/classes/utils.js","lineNumber":16,"sourceCode":"/*\n * Modal utilities helper\n */\nexport class ModalUtils {\n    #validateAlertOptions(options) {\n        if (options) {\n            if (typeof options !== 'object') {\n                throw new Error('options must be an object');\n            }\n\n            if (options.buttonText && typeof options.buttonText !== 'string') {\n                throw new Error('options.buttonText must be a string');\n            }\n\n            if (options.size && typeof options.size !== 'string') {\n                throw new Error('options.size must be a string');\n            }\n        }\n\n        return options || {};\n    }\n\n    #validateBasicArguments(title, text) {\n        if (typeof title !== 'string' || !title.length) {\n            throw new Error('Modal title is required');\n        }\n\n        if (typeof text !== 'string' || !text.length) {\n            throw new Error('Modal text is required');\n        }\n    }\n\n    showAlert(title, text, options) {\n        options = this.#validateAlertOptions(options);","sourceCodeStart":1,"sourceCodeEnd":34,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/vuecomponents/modal/assets/js/classes/utils.js#L1-L34","documentation":"Error \"options.size must be a string\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/vuecomponents/modal/assets/js/classes/utils.js:16 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b608633a7e8922487d91a8161499020121c3b3bf","analyzedAt":"2026-08-21T04:24:57.515Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}