plsql - How to catch Oracle exception "ORA-06535: statement string in OPEN is NULL or 0 length"? -


i catch specific exception exception "ora-06535: statement string in open null or 0 length"

but couldn't figure out exact "exception name" it. please note don't want catch under generic other exceptions block..

exception    when <exception_name1>            executable_statements;    when <exception_namen>           executable_statements;     when others           executable_statements; end; 

some exceptions have names such 'too_many_rows'. however, of oracle exceptions not have names. if want trap of them, need give them names.

for exception, can this:

declare   ....   null_string exception; pragma exception_init(null_string, -06535); .... begin  ...... exception when null_string      executable_statements;      .....  end; 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -