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.
ColdBox Platform Evangelist
Ortus Solutions, Corp