Last active
December 14, 2015 09:18
-
-
Save schauder/5063409 to your computer and use it in GitHub Desktop.
We found some exception handling code we weren't satisfied with, so we refactored it.
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
**before** | |
} catch (final Exception e) { | |
LOG.error(e.toString(), e); | |
return null; | |
} | |
**after** | |
} catch (final Exception e) { | |
LOG.error("You'll get an NPE next", e); | |
return null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment