{"record":{"id":"6f9efae701b69a95","repo":"phalcon/cphalcon","slug":"error-handler-is-not-callable","errorCode":null,"errorMessage":"Error handler is not callable","messagePattern":"Error handler is not callable","errorType":"exception","errorClass":"Phalcon\\Mvc\\Micro\\Exceptions\\ErrorHandlerNotCallable","httpStatus":null,"severity":"error","filePath":"phalcon/Mvc/Micro.zep","lineNumber":678,"sourceCode":"            }\n        } catch Throwable, e {\n            /**\n             * Calling beforeNotFound event\n             */\n            if this->eventsManager !== null {\n                this->eventsManager->fire(\n                    \"micro:beforeException\",\n                    this,\n                    e\n                );\n            }\n\n            /**\n             * Check if an errorhandler is defined and it's callable\n             */\n            if this->errorHandler !== null {\n                if unlikely !is_callable(this->errorHandler) {\n                    throw new ErrorHandlerNotCallable();\n                }\n\n                /**\n                 * Call the Error handler\n                 */\n                let returnedValue = call_user_func_array(\n                    this->errorHandler,\n                    [e]\n                );\n\n                if typeof returnedValue === \"object\" {\n                    if !(returnedValue instanceof ResponseInterface) {\n                        throw e;\n                    }\n                } else {\n                    if returnedValue !== false {\n                        throw e;\n                    }","sourceCodeStart":660,"sourceCodeEnd":696,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Mvc/Micro.zep#L660-L696","documentation":"Error \"Error handler is not callable\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Mvc/Micro.zep:678 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"}