Which of the following statements regarding the “preserve the type and the detail of the exception" is correct
a. The “Preserve” checkbox is only applicable when in Recovery Mode.
b. The “Preserve…. box has no impact on releasing or generating exceptions.
c. Re-throwing an exception will generate a second exception unless the “Preserve” checkbox is checked.
Answers
The role of the “Preserve the type and detail of the exception” checkbox is important to know. When the checkbox is ticked the exception stage re-releases the current exception. When the checkbox is not ticked, a new exception is generated by the exception stage and also keeps the current exception alive. This results that until and unless the Preserve checkbox is checked the exception stage will generate new exceptions again and again.
Therefore, c. will be the correct statement regarding the given statement.
"Among the given statements, the option b) Preserve…. box has no impact on releasing or generating exceptions is correct the correct answer.
This is because of the fact that preserve checkbox is not only applicable when it is in recovery mode and re-throwing the exception will not generate exception until the checkbox is enabled. The checkbox is generally a graphic user interface button."