cancel
Showing results for 
Search instead for 
Did you mean: 

Display exception from an event listener aboutToCreate in webui Polymer

Yasir_
Champ in-the-making
Champ in-the-making

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
Getting started

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.