Example of printing both the exception message and stack trace