Display exception from an event listener aboutToCreate in webui Polymer
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 votes
0 answers
1667 views