-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nadia Paola Garcia
committed
Mar 15, 2016
1 parent
15cdea2
commit dae0e7a
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Two exception handling anti patterns might be happening here, one is that you want to avoid doing something like:
catch (Exception e) Because you want to be specific about handing different errors, for example IO errors vs input errors
Another problem is that we are eating the exception and showing a "Not able to take screenshot" , we need to include the error so you can troubleshoot without the need of debugging