Which three actions represent best practices when implementing an exception handling strategy for an application?

Which three actions represent best practices when implementing an exception handling strategy
for an application?

Which three actions represent best practices when implementing an exception handling strategy
for an application?

A.
Create a custom checked exception if an alternative action can be taken to resolve the
exception.

B.
Create a custom unchecked exception if the action to resolve the exception cannot be defined.

C.
Always log the specific exception before re-throwing a wrapped exception.

D.
Always throw exceptions in methods that are designed for exception handling.

E.
Always include information specific to the error when logging an exception.

Explanation:



Leave a Reply 5

Your email address will not be published. Required fields are marked *


DonkeyNuts

DonkeyNuts

C is not right, always log the exception or throw it, but never both.

Reviewer

Reviewer

So what is the third good answer?