[xwiki-notifications] [[email protected]][Issue] Updates for DISCUSSION-31: Improve error handling in APIs