throws clause doubt in exception handling ?
posted 4 years ago
But your names should conform to standard naming conventions, example here, and end with Exception. If you want to throw an Exception because an empty String has been passed, it should be called EmptyStringException. You should also go through the hierarchy of Exceptions, because there might be a better superclass than Exception.