[xwiki-notifications] [xwiki-contrib/application-discussions] 920d6d: DISCUSSION-31: Improve error handling in APIs