QuestionQ29
Secure Coding Practices for Error HandlingWhich of the following methods would you use instead of ex.printStackTrace() to avoid printing the stack trace when an error occurs?
- A ex.StackTrace.getError();
- B ex.message();
- C ex.getMessage();
- D ex.getError();
Community Discussion