Relative Content

Tag Archive for exceptions

The suffix Exception on exceptions in java

Specifying a suffix of Exception on exception classes feels like a code smell to me (Redundant information – the rest of the name implies an error state and it inherits from Exception). However, it also seems that everyone does it and it seems to be good practice.

Wrapping specific checked exception in domain unchecked ones? [duplicate]

This question already has answers here: Is it good practice to catch a checked exception and throw a RuntimeException? (13 answers) Closed 11 years ago. Uncle Bob says in Clean Code book that Unchecked Exceptions should be used. Now JDK has some checked exceptions: IOException, IllegalAccessException etc. which cannot be avoided. In my application logic […]