xxxxxxxxxx
declare
e_sql_cancelled exception;
pragma exception_init(e_sql_cancelled, -01013);
begin
raise e_sql_cancelled;
exception
when e_sql_cancelled then
for a in ( select 'my value' as value from dual t ) loop null; end loop;
raise_application_error(-20001, 'My error', false);
end;
/
declare *ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at line 8
ORA-06512: at line 8
ORA-01013: User requested cancel of current operation.
ORA-06512: at line 5