9
Maybe you can execute your queries within a (anonymous) PL/SQL block, and then use the its exception handler to catch "negative" statements:
begin
insert into a values (1, 4/0);
exception when others then
... error has happened,
... use 'sqlerrm' and 'sqlcode'
... for further analysis
end;