Hello,
I see that Oracle raises its own exceptions for things like this:
EXECUTE IMMEDIATE l_sql_stmt INTO l_temp_string;
when there is no data found from the query. I don't want to handle all these exceptions in one WHEN DATA_NOT_FOUND exception handler. I think it is incredible that these exceptions can not be differentiated! In Java, such errors can be captured inside a try/catch block. But not here, it seems....
I can do some nasty kludge, like setting a global variable to tell me which function I was in when the error occurred, but does anyone else have an idea?
Thanks,
Kris
I see that Oracle raises its own exceptions for things like this:
EXECUTE IMMEDIATE l_sql_stmt INTO l_temp_string;
when there is no data found from the query. I don't want to handle all these exceptions in one WHEN DATA_NOT_FOUND exception handler. I think it is incredible that these exceptions can not be differentiated! In Java, such errors can be captured inside a try/catch block. But not here, it seems....
I can do some nasty kludge, like setting a global variable to tell me which function I was in when the error occurred, but does anyone else have an idea?
Thanks,
Kris
Comment