Question on Recovery logic!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
19-03-21 04:59 PM
Hello,
I was trying recover, resume scenarios and noticed Exception Details was still available post recovery mode.
I was trying recover, resume scenarios and noticed Exception Details was still available post recovery mode.
What will happen if I rethrow exception after resume stage? Will it throw the original exception OR will it be empty? As Recover stage nullify the exception and exception should be dead post recover stage right. Is this the right understanding?
Because while doing this manually I can still see exception details available though is has been resumed.
Thanks
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
20-03-21 03:34 PM
Hi,
Between the resume and recover stage, if you are rethrowing exception, you will end up getting the same exception message which you have got in the first instance. Incase if you are trying to rethrow the exception after recovery stage, then your rethrow itself will give error.
Please note, the rethrow feature should be used only when you are in the recovery mode (between resume and recover stages), and not anywhere else in your logic!
Thanks,
Shashi K R
Between the resume and recover stage, if you are rethrowing exception, you will end up getting the same exception message which you have got in the first instance. Incase if you are trying to rethrow the exception after recovery stage, then your rethrow itself will give error.
Please note, the rethrow feature should be used only when you are in the recovery mode (between resume and recover stages), and not anywhere else in your logic!
Thanks,
Shashi K R
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
22-03-21 07:29 AM
