classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NYIException


From: Michael Koch
Subject: Re: NYIException
Date: Sat, 27 Sep 2003 11:22:56 +0200
User-agent: KMail/1.5.2

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Samstag, 27. September 2003 11:11 schrieb Jeroen Frijters:

> > Have you misread Andrew's comment ? I read it exaclty the other
> > way around then you.
>
> I didn't misread it, I just strongly disagree with it. If Andrew's
> argument was the reason UnsupportedOperationException was chosen, I
> think we need to reconsider.

Yes.

> Surely there is defensively written code out there that handles
> UnsupportedOperationException (for example, when dealing with
> collections), this will consume our UnsupportedOperationException
> (which really means something quite different) and make diagnosing
> the problem extremely hard. When an application depends on missing
> functionality I want to see the exception and reduce the chance
> that the app accidentally eats the exception.


Well, thats my concern too. Summarized inheriting from either 
UnsupportedOperationException or Error is bad. Just inheriting from 
Exception might not be.

Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/dVbwWSOgCCdjSDsRAg9eAJ4zJpofhG7tQsSiT4iRbWFX6vFbHACfX/Gz
YccHJ9M6jHR/JQ6AlnfxUso=
=sdgC
-----END PGP SIGNATURE-----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]