How to disable phalcon exception message in production?

For example, "PhalconException: Action 'XXX' was not found on handler 'AbcdController'".


edited May '17

Use Phalcon\Events\Manager with dispatcher then attach a dispatch:beforeException with an internal class extended by Phalcon\Mvc\User\Plugin and define a beforeException function where you can catch the phalcon exceptions to do the appropriate action.
Example :