A collection of tips and insights for handling Java exceptions
We were made into thinking that debugging is just about making problems go away, when the real challenge is about understanding how applications really work. The first step, is understanding exceptions and best practices.
In this post, we’re presenting a new cheat sheet about Java exceptions. One step closer to an ideal state of zero exceptions. Check it out.
— Takipi (@takipid) August 4, 2016
Exceptions in the Spotlight
Java’s official documentation states, “An exception is an event that occurs during the execution of a program that DISRUPTS the normal flow of instructions”. In practice, exceptions are abused and take part in the normal flow of the application which is less than ideal to say the least.
Recently we’ve released the complete guide to solving Java application error in production which tackles these exact issues. Since its release it already received over a 1,000 downloads so we’ve decided to release a summary of some of its main points in a single cheat sheet.
What’s in it for you?
- Exception class hierarchy
- Effective Java Exception Guidelines
- The Top 10 Exception Types in Production
- Checked vs. Unchecked Exceptions
- And some additional useful tips and insights from OverOps exception research, bundled together in one page
We hope to give exceptions the attention they deserve. It’s one of the most crucial issues that impacts the health of your application, yet it’s the least covered topic in the community.
Do you have any other tips and insights that we missed? Share them in the comment section below.
Blog – Java throw Exception Example