Subject Handling broken constraints error messages
Author Jerome Bouvattier
Hello,

What is the recommended way for turning error messages provided by FB into
something the user can understand ?

For example, if the user attempts to delete a record thus breaking an FK, I
want to tell the user which referencing entity does complain about the
deletion.

So far, I can only think of two possibilities :

1) Do all possibly checks in application code to make sure the deletion will
commit or raise my custom exception.
2) Parse the FB error message the name of each FK that could possibly be
broken.

I don't like either of the above.

Thanks for your advices.

--
Jerome Bouvattier