Which of the following is a best practice for error and exception handling?

Which of the following is a best practice for error and exception handling?




A. Log detailed exception but display generic error message
B. Display detailed exception but log generic error message
C. Log and display detailed error and exception messages
D. Do not log or display error or exception messages



Answer: A


Learn More :