Exceptional Naming

When code throws or catches an exception, name to communicate rather than regurgitate

A previous version of this article appeared in NDC Developer Magazine
ClassNotFoundException
EnumConstantNotPresentException
IllegalArgumentException
IllegalAccessException
IndexOutOfBoundsException
NegativeArraySizeException
NoSuchMethodException
TypeNotPresentException
UnsupportedOperationException
ClassNotFound
EnumConstantNotPresent
IllegalArgument
IllegalAccess
IndexOutOfBounds
NegativeArraySize
NoSuchMethod
TypeNotPresent
UnsupportedOperation
ArrayStoreException
ClassCastException
InstantiationException
NullPointerException
NumberFormatException
SecurityException
ArrayStore
ClassCast
Instantiation
NullPointer
NumberFormat
Security
IllegalArrayElementType
CastToNonSubclass
ClassCannotBeInstantiated
UnexpectedNullReference
InvalidNumberFormat
SecurityViolation

consultant · father · husband · itinerant · programmer · speaker · trainer · writer

consultant · father · husband · itinerant · programmer · speaker · trainer · writer

An essay on paradigms, refactoring, control flow, data, code, dualism and what Roman numerals ever did for us


Post a quick thought or a long story. It's easy and free.


Assertions should be necessary, sufficient, and comprehensible

A previous version of this article appeared in 97 Things Every Programmer Should Know


The challenge is not to write comments for what code does not say, but to write comments for what code cannot say

A previous version of this article appeared in 97 Things Every Programmer Should Know


The number of days in a year is 365 or 366… or more or less


When is the same date not the same day?


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store