Status/Resolution/Reason: To Fix//NeedMoreInfo
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 06/22/2015
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 0
See here: http://blog.adamcameron.me/2015/06/cfml-spending-pointless-time-looking.html
One should be able to catch any sort of java.lang.Throwable, not just java.lang.Exceptions.
As per the Java docs (https://docs.oracle.com/javase/tutorial/essential/exceptions/catch.html):
{quote}
The argument type, ExceptionType, declares the type of exception that the handler can handle and must be the name of a class that inherits from the Throwable class.
{quote}
I realise CFML is not Java, but it's close enough in this situation that this ought to be true of CFML as well.
Note: Lucee already manages this fine.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4010446
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: