Say I have an Oracle PL/SQL block that inserts a record into a table and need to recover from a unique constraint error, like this:
begin insert into some_ta
EXCEPTION WHEN DUP_VAL_ON_INDEX THEN UPDATE