raise_application_error and when others

From: Chuck Boddy <Chuck.Boddy_at_gettyimages.com>
Date: Wed, 30 Nov 2011 21:11:17 +0000
Message-ID: <03ED9A05921CD149B3984ABF3F59EE7A1E785A_at_SEAPXCH10MBX01.amer.gettywan.com>

I have a trigger that under a condition, I call raise_application_error. I also have when others defined to write to an error table passing sqlerrm and sqlcode. My understanding is that when the condition is met and raise_application_error is called, execution ends in the subprogram. What "appears" to be happening, is that raise_application_error is handled THEN drops down to when others. Because the record that is written to my error table has the sqlerrm and sqlcode that is only populated in my user-defined raise_application_error handler(-20400). Is this true, that if you call raise_application_error AND have when others defined, the call to raise_application_error will then drop down to your when others exception? Thanks,
Received on Wed Nov 30 2011 - 15:11:17 CST

Original text of this message