phalcon/cphalcon · error · Phalcon\Mvc\Micro\Exceptions\ErrorHandlerNotCallable
Error handler is not callable
Error message
Error handler is not callable
What it means
Error "Error handler is not callable" thrown in phalcon/cphalcon.
Source
Thrown at phalcon/Mvc/Micro.zep:678
}
} catch Throwable, e {
/**
* Calling beforeNotFound event
*/
if this->eventsManager !== null {
this->eventsManager->fire(
"micro:beforeException",
this,
e
);
}
/**
* Check if an errorhandler is defined and it's callable
*/
if this->errorHandler !== null {
if unlikely !is_callable(this->errorHandler) {
throw new ErrorHandlerNotCallable();
}
/**
* Call the Error handler
*/
let returnedValue = call_user_func_array(
this->errorHandler,
[e]
);
if typeof returnedValue === "object" {
if !(returnedValue instanceof ResponseInterface) {
throw e;
}
} else {
if returnedValue !== false {
throw e;
}View on GitHub (pinned to b7419de9cd)
When it happens
Trigger: Thrown at phalcon/Mvc/Micro.zep:678 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21).
Data as JSON: /api/errors/6f9efae701b69a95.
Report an issue: GitHub.