Java Exceptions naming convention: <problem><noun>Exception

I have long been inconsistent when creating Java Exception classes, in terms of how I name them. Having looked through the Exeptions that are supplied with Java, I see there is no real standard naming convention.

I have found more exceptions with the form <problem><noun>Exception. For example, IllegalArgumentException. So that's what I've decided to use in the future.

P.S. I recently created a nerdy privacy-respecting tool called When Will I Run Out Of Money? It's available for free if you want to check it out.

This article is © Adrian Smith.
It was originally published on 16 May 2017
More on: Java | Coding