{"record":{"id":"ffae5a5b83210379","repo":"octobercms/october","slug":"snackbar-options-timeout-cannot-be-lower-than-2000","errorCode":null,"errorMessage":"Snackbar options.timeout cannot be lower than 2000","messagePattern":"Snackbar options\\.timeout cannot be lower than 2000","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"modules/backend/assets/js/october/october.snackbar.js","lineNumber":42,"sourceCode":"            }\n\n            if (typeof options !== 'object') {\n                throw new Error('Snackbar options must be an object');\n            }\n\n            if (options.replace !== undefined) {\n                if (typeof options.replace !== 'number') {\n                    throw new Error('Snackbar options.replace must be a number');\n                }\n            }\n\n            if (options.timeout !== undefined) {\n                if (typeof options.timeout !== 'number') {\n                    throw new Error('Snackbar options.timeout must be a number');\n                }\n\n                if (options.timeout < 2000) {\n                    throw new Error('Snackbar options.timeout cannot be lower than 2000');\n                }\n\n                if (options.timeout > 8000) {\n                    throw new Error('Snackbar options.timeout cannot be higher than 8000');\n                }\n            }\n\n            if (options.action !== undefined) {\n                if (typeof options.action !== 'object') {\n                    throw new Error('Snackbar options.action must be an object');\n                }\n\n                if (typeof options.action.label !== 'string') {\n                    throw new Error('Snackbar options.action.label must be a string');\n                }\n\n                if (typeof options.action.callback !== 'function') {\n                    throw new Error('Snackbar options.action.callback must be a function');","sourceCodeStart":24,"sourceCodeEnd":60,"githubUrl":"https://github.com/octobercms/october/blob/b608633a7e8922487d91a8161499020121c3b3bf/modules/backend/assets/js/october/october.snackbar.js#L24-L60","documentation":"Error \"Snackbar options.timeout cannot be lower than 2000\" thrown in octobercms/october.","triggerScenarios":"Thrown at modules/backend/assets/js/october/october.snackbar.js:42 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"}