I pasted that chunk of code into a handler in an empty sample app, and I correctly see the “exception0” message being thrown:
Application Execution Exception
Error Type: application : [N/A]
Error Messages: exception0
Are you using ACF or Railo? I’m not sure if ACF supports throw as a keyword, since the Adobe docs show the throw() function.
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com