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 :
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
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.