Intercept errors of un update query

I have a query to update a table witch may generate execution errors like lock errors. is there a way to intercept this errors with rc_exec_sql?
.

not sure, but you can try to use the regulare php catch and see what it does.