Trapping error messages

Is there an easy way I can intercept INTRBASE error messages in

I would like to change the text o f some messages like
        Primay Key violation or
        Check Constraint violations
to something more meaningfully to my users.

I would like it to haven mimimum code intervention. Could be on the
delphi side or on the inrtbase server side.

Do you know someplace where I can get information about this ?

Thank's in advance

Joao Vaz