AnsweredAssumed Answered

Handling AlfrescoRuntimeExceptions triggered in Alfresco

Question asked by marcus on Jun 17, 2009
My webscript is attempting to create a node based on user input. This input could sometimes contain characters that are invalid (such as " or /). No matter what I've tried, I can't seem to catch this exception when it's triggered and forward the response to an appropriate webscript. I've tried using a try / catch in the javascript around the call to createNode, but this doesn't catch the exception, and I've tried supplying a 500 template in <webscript>.format.500.ftl, format.500.ftl and just 500.ftl as per http://forums.alfresco.com/en/viewtopic.php?f=36&t=17099&p=56185,  but none of these seem to work. Is there a proper way to handle these errors?

Outcomes