
 declare
 x number := 0;
 y number;
 begin
 y := 10/x;
 dbms_output.put_line(y);
 exception
 when others then
 dbms_output.put_line(sqlcode||','||sqlerrm);
 end;