Andrea Francia wrote:
2008/10/2 Steve Ulrich <[EMAIL PROTECTED]>:
I had similar discussions about the need of own exceptions, always with the
same background: laziness and fear of complexity.
The argumentation always reminds me on the Exceptions part of the mindprod
"unmain"-Site:
"Subclassing exceptions is for incompetents who know their code will fail. You can
greatly simplify your program by having only a single try/catch in the entire application
(in main) that calls System.exit()."
The use of a single FtpException goes in this direction.
IMHO, FtpException must be the root of other exceptions, like
FtpNoSuchFileException, and such. As Niklas mentioned, it deserves some
love. But in any case, it's far better than using IoException :)
--
--
cordialement, regards,
Emmanuel Lécharny
www.iktek.com
directory.apache.org