|
|
|
|
|
|
Re: PL/SQL: ORA-19102: XQuery string literal expected [message #463638 is a reply to message #463637] |
Fri, 02 July 2010 06:16   |
Its_me_ved
Messages: 979 Registered: October 2009 Location: India
|
Senior Member |
|
|
ramoradba wrote on Fri, 02 July 2010 06:13Quote:Remove thei stupid WHEN OTHERS clause
@ Michel ,
If its really a stupid one ,why not Oracle drop the clause in current/upcoming releases...
Just asking... 
sriram
When WHEN OTHERS is not followed by RAISE its almost always a BUG.
At times, you can not cover all the exceptions in your exception handler and then you need to specify WHEN OTHERS as the last exception to handle if any exception occured.
Use of WHEN others without raise is like you hide the actual exception raised. It becomes difficult to debug if you use NULL just after WHEN OTHERS, so remove it to find out the actuall error.Well, I found some strange behaviour when WHEN OTHERS exception is not followed by RAISE. I did remove all the WHEN OTHERS exceptions from the procedure and then found that the actual error was something else. Thanks to Tom Kyte for his article on this topic for which I could solve the problem in a short span of time.
Michel would give a proper reply to your question I believe.
Regards
Ved
[Updated on: Fri, 02 July 2010 06:30] Report message to a moderator
|
|
|
|
|
|
|
|
|