Errors are triggered in try/finally without catch, at:
Need to catch them and call onError()
not in my opinion, the cfc should not catch the exception , the interface method defines a PageException, so exception get exposed.
It is not the job of the Component to trigger onError, that is the job of the Listener and only the “Modern“ and “Mixed“ listener does even call onError, “classic“ and “none“ does not.
But I have an Application.cfc for that directory with onError(), so shouldn’t I have a Modern listener there?
This makes development of REST services very difficult so we need to find a solution for it.