how to display validation message in the Admin UI?

(from github.com/AllenHan5)
I have integrated FESS to create new records to ES. I’d like to show warning/error messages during the ES operation if something goes wrong.
Can you please provide any guidance regarding it?
Thanks

(from github.com/marevol)
Need more details to reproduce it…

(from github.com/AllenHan5)
Thanks for looking at this, @marevol!!
It’s actually not an issue with FESS. Just that I wanted to find a way to show warning/error message if something happens with ES operation (insert/update/delete). I have extended the method delegateInsert in class AbstractBehaviorWritable. Is it possible to throw a specific exception so that the Admin UI would display it to the UI?
Thanks

(from github.com/AllenHan5)
In the end, here was the approach I was taking:

  1. In an overridden method, delegateUpdate of EsAbstractBehavior, throw RuntimeException if anything wrong happens.
  2. In an overridden method update of FessAdminAction, make sure UI elements are available when an exception is thrown so that the display should be OK.
    Thanks