REST errors do not trigger Application.onError()

Description

None

Environment

None

Activity

Show:
Michael Offner
November 24, 2020, 8:44 PM

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.

Igal Sapir
November 25, 2020, 3:40 AM

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.

Fixed

Assignee

Igal Sapir

Reporter

Igal Sapir

Priority

New

Labels

Fix versions

Affects versions