14 Jan
2016
14 Jan
'16
4:51 p.m.
Hi devs, Right now our strategy is for script services and script APIs in general to catch exceptions, store them and offer a getLastError() method to get them (see http://extensions.xwiki.org/xwiki/bin/view/Extension/Script+Module#HBestPrac...) However it would be much nicer to: * Let our script services generate exceptions * Offer a velocity script service to get the last exception raised by a java call from velocity * Implement this uberspector to catch the exceptions and to set them in the execution context That should be quite easy to implement IMO. WDYT? Thanks -Vincent PS: This is http://jira.xwiki.org/browse/XWIKI-2374