Java Exceptions Cheat Sheet

 ● 04th Aug 2016

2 min read

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.

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

Final Thoughts

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.

Additional Resources:

eBook – The Complete Guide to Solving Java Application Errors in Production

Blog – Java throw Exception Example

Alex is the Director of Product Marketing at OverOps. As an engineer-turned-marketer, he is passionate about transforming complex topics into simple narratives and using his experience to help software engineering navigate their way through the crowded DevOps landscape.

Troubleshooting Apache Spark Applications with OverOps OverOps’ ability to detect precisely why something broke and to see variable state is invaluable in a distributed compute environment.
Troubleshooting Apache Spark Applications with OverOps

Next Article

The Fastest Way to Why.

Eliminate the detective work of searching logs for the Cause of critical issues. Resolve issues in minutes.
Learn More