In pages.xml EntityExistsException is predefined with an error message
'Duplicate record'.
But this exception can also be thrown if I try to delete a referenced entity of a ManyToOne relationship (the One
side, typically a record of a lookup table).
So, how could I distinguish what caused the EntityExistsException in order to give an understandable error message?
Thanks!
Robert