Is It Bad To Throw Exceptions?
Is It Bad To Throw Exceptions? The throws declaration is part of the method contract. You should always be as precise as possible when defining contracts. Saying throws Exception is therefore a bad idea. It’s bad for the same reason it is bad practice to say a method returns an Object when it is guaranteed