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

By Adrian Smith16 May 2017100 words1 mins to read

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.

This article was written by Adrian Smith on 16 May 2017

Follow me: Facebook | Twitter | Email

More on: Java