Re: [xwiki-devs] [Proposal] Change our Script API best practice regarding exception handling (Take 2)

2016-04-03 Thread Thomas Mortagne
You will start catching when you want to deal with errors (before that the Velocity macro will deal with it for you automatically) and it does not really cost much more lines to deal with errors that way than using checking for null return (for method that actually return something that could be

Re: [xwiki-devs] [Proposal] Change our Script API best practice regarding exception handling (Take 2)

2016-04-03 Thread Vincent Massol
> On 03 Apr 2016, at 10:49, Thomas Mortagne wrote: > > You will start catching when you want to deal with errors (before that > the Velocity macro will deal with it for you automatically) and it > does not really cost much more lines to deal with errors that way than