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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -