Display exception from an event listener aboutToCreate in webui Polymer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2017 04:00 AM
Hi,
I would like to know how to catch an exception in the front with web-ui Polymer, in case of an event handler aboutToCreate for example.
In my listener :
- I rollback (it works)
- I add in contextData map a message, but this message does not display on the UI
- i throw the exception but the message does not display on the UI
DocumentEventContext ctx = (DocumentEventContext) event.getContext();
DocumentModel doc = ctx.getSourceDocument();
doc.getContextData().putAll(data);
TransactionHelper.setTransactionRollbackOnly();
event.markRollBack();
throw new NuxeoException(e.getMessage(), e);
Thanks for any help
0 REPLIES 0
