cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andre Juffer <>
Subject Catching exceptions in binding
Date Sun, 22 Apr 2007 19:44:00 GMT

suppose I have the following:

<fb:javascript id="someId" path="." direction="save">

Suppose the 'object.setValues(values)' throws an exception for whatever 
reason. With flow I have something like:

     catch (exception)

It seems that when an exception is thrown by 'object.setValues(values)', an

org.apache.avalon.framework.CascadingRuntimeException: Error invoking 
JavaScript event handler

is thrown, instead of the actual exception that was in fact thrown by 
the 'object.setValues(values)'.

What would be the best possible way to avoid the 
CascadingRuntimeException and get the original exception with flow. I 
have tried an try { ... } catch block, but I would like to avoid this. 
(The alternative is of course to ensure that the values that go into the 
'object.setValues(values);' do not cause any exception.)

Thanks for your help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message