I am relatively new to Pimcore and I want to know how can we throw an error message while saving the object. I have found about the Events which are triggered when we save object and we can implement our own function in a class. But what then? How do we show the error or customized message from the code?
Could you please help me. Thanks a lot in advance.