Title:
ColdFusion masks correct exception when exception is thrown from within an iteration method using a function expression
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 07/16/2015
Components: Language, Exception Handling
Versions: 11.0
Failure Type: Data Loss
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 12
See: http://blog.adamcameron.me/2015/07/cfml-coldfusion-does-some-dodgy.html
Basically if an exception is raised within the method version of an iteration function (eg: Array.each()), and the callback is a function expression, then CF replaces the original exception with a vanilla Application exception.
Please stop doing that.
Can you also please explain why you are doing this in the first place? It seems a bit odd.
Cheers
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4021994
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: