Creating custom exceptions

时间:2016-10-20 20:05:11

标签: java exception exception-handling

While searching for something on StackOverflow that involves Exceptions I've found a response that said something along the lines of:

"Creating too many custom exceptions is a code smell. Try to use as many of the JDK-provided ones as you can."

Why? What is wrong with me creating 3 custom exceptions that describe what should happen with the email message I am trying to process?

0 个答案:

没有答案