My C++ application invokes some PL/SQL function (via OCI), which might throw an oracle exception.
But i am confronted with different behavior for the same situation.
Sometimes my application receives the original oracle exception (ORA-20000 plus additional information).
But sometimes i get ORA-06512 instead - which is legal, because the oracle exception was propagated out of the PL/SQL context.
But why only sometimes?
I hit this because the exception handling in C++ was different for ORA-20000 vs. other exceptions (e.g. ORA-06512).
I can align this.
But i would like to know, why i don't get ORA-06512 always.
best regards,
Frank