{"record":{"id":"73c561108c280c88","repo":"phalcon/cphalcon","slug":"trying-to-cancel-a-non-cancelable-event","errorCode":null,"errorMessage":"Trying to cancel a non-cancelable event","messagePattern":"Trying to cancel a non-cancelable event","errorType":"exception","errorClass":"EventNotCancelable","httpStatus":null,"severity":"error","filePath":"phalcon/Events/Event.zep","lineNumber":166,"sourceCode":"    {\n        let this->type = type;\n\n        return this;\n    }\n\n    /**\n     * Stops the event preventing propagation.\n     *\n     * ```php\n     * if ($event->isCancelable()) {\n     *     $event->stop();\n     * }\n     * ```\n     */\n    public function stop() -> <EventInterface>\n    {\n        if unlikely !this->cancelable {\n            throw new EventNotCancelable();\n        }\n\n        let this->stopped = true;\n\n        return this;\n    }\n}\n","sourceCodeStart":148,"sourceCodeEnd":174,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Events/Event.zep#L148-L174","documentation":"Error \"Trying to cancel a non-cancelable event\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Events/Event.zep:166 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":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}