Hi!
I would like catch Oracle Db errors in my SQLcl script (wrote on JavaScript).
How I can make this?
Example:
script
var v_xBinds = {};
if (util.execute("begin pl/sql syntax error here. 'end;', v_xBinds)) { print(' Done.'); } else { print('ERROR:'); } }
/
Execution on wrong PL/SQL anonymouse block not raise any exception. How know ORA-error in script?
Thanx!