Hello,

Since only exceptions produced by the dispatcher and exceptions produced in the executed action are notified in the ‘beforeException’ events, I am trying to figure out smart ways to handle gracefully exceptions produced in listeners or controller events which end up getting caught in the latest try/catch (which happens to be in my bootstrap file).

I'd love to hear the thoughts of the community on this issue.

PS: That's what i'm referring to in case I wasn't clear enough. https://docs.phalcon.io/en/latest/reference/dispatching.html#handling-not-found-exceptions

Thanks for reading.