Errors are triggered in try/finally without catch, at:
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/ComponentImpl.java#L633
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/ComponentImpl.java#L649
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/ComponentImpl.java#L670
https://github.com/lucee/Lucee/blob/5.3/core/src/main/java/lucee/runtime/ComponentImpl.java#L683
Need to catch them and call onError()
any thoughts?
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.