IBM
C2050-725 · Question #16
An application developer ishandling an exception case in a new. custom, controller command. The exception is caused by a transient error, and if the entire transaction is rolled back and retried…
The correct answer is D. Throw an ECApplicationException, with an error object containing the retryCount property set to. See the full explanation below for the reasoning.
Question
An application developer ishandling an exception case in a new. custom, controller command. The exception is caused by a transient error, and if the entire transaction is rolled back and retried, the code may complete successfully. How should the developer handle this situation?
Options
- ALog the error condition and throw the ECRetriableException.
- BEnsure the isRetriable() method on the command returns true and throw an ECSystemException
- CUse the TransactionManager.rollback() method to roll back the transaction and retry the entire
- DThrow an ECApplicationException, with an error object containing the retryCount property set to
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C12% (3)
- D81% (21)
Community Discussion
No community discussion yet for this question.