Skip to Content
0
Former Member
Sep 01, 2015 at 03:03 PM

Where do i use RESUMABLE EXCEPTION?

975 Views

Hello SDNers,

I have the following construct in my code:

  TRY .
val1 = persist_class->get_value( key1 ). val2 = persist_class->get_value( key2 ). " --> exception is raised here val3 = persist_class->get_value( key3 ). CATCH exception. ENDTRY.

I want the next statement

val3    = persist_class->get_value( key3 ).


to be executed after the exception has been handled.

I thought of using "resumable exceptions". So I read the SAP documentation on the topic & then debugged the program DEMO_CATCH_EXCEPTION.

IMO "resumable" is w.r.t. the procedure which RAISES the exception & not the HANDLER. Is my understanding correct? If yes, then what is their utility?

Thanks for your replies.

BR,

Suhas