|
|
|
|
|
|
|
|
|
|
| Re: Suppressing ORA-06512 & ORA-04088 when using RAISE_APPLICATION_ERROR? [message #522116 is a reply to message #522114] |
Tue, 06 September 2011 12:04   |
 |
Michel Cadot
Messages: 68776 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Thanks to post it. I will warn T. Kyte, it will suggest him to make it remove.
This is a VERY BAD example that MUST NEVER be used.
In addition, it does not anything to what I said, the final program use substr or dbms_utility.format_error_stack which the same thing but embedded in a function call. You can do the same in your client program if you think the end user is not smart enough to do it with his brain.
Regards
Michel
[Updated on: Mon, 12 September 2011 11:48] Report message to a moderator
|
|
|
|
| Re: Suppressing ORA-06512 & ORA-04088 when using RAISE_APPLICATION_ERROR? [message #522117 is a reply to message #522116] |
Tue, 06 September 2011 12:18  |
cookiemonster
Messages: 13975 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
That note is misleading on a couple of levels.
1) Raise application error doesn't cause ORAA-06512. Oracles exception handling model causes ORA-06512
2) It implies that dbms_utility.format_error_stack only affects user defined errors, which is not the case. And while I might want to apply it user defined errors I definitely wouldn't want to apply it to other errors.
Which means you have to check the error number before deciding to use it.
|
|
|
|