[Top][All Lists]
[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 10:57:23 +0200 |
User-agent: |
KMail/1.5.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Samstag, 27. September 2003 10:43 schrieb Jeroen Frijters:
> Per Bothner wrote:
> > >>We discussed this in March, and there was agreement that we
> > >>should use use UnsupportedOperationException.
> > >>
> > >>See http://gcc.gnu.org/ml/java/2003-03/msg00016.html
> > >
> > > Its never too late to rethink something.
> >
> > But unless one is aware of previous discussion (and even if one
> > is), much time may be wasted. So far I haven't seen any reason
> > why we need to re-consider the previous consensus.
>
> I just re-read the previous discussion and there Andrew Haley wrote:
> > UnsupportedOperationException is a good choice. Any subclass of
> > Error is not, because according to the spec Error "indicates
> > serious problems that a reasonable application should not try to
> > catch."
>
> IMNSHO, this is *exactly* why we must define a new exception
> derived from Error. An unimplemented method *is* a serious problem
> that a reasonable application should not try to catch.
>
> So, I think it is an extremely bad idea to use
> UnsupportedOperationException (or a subclass of it).
Have you misread Andrew's comment ? I read it exaclty the other way
around then you.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQE/dVD3WSOgCCdjSDsRArN/AJ9PrMom242bOP0UN8OjtQJPDzbimwCeNQoS
siqmZamyzq0EJYV/3UwQ3N4=
=uxdc
-----END PGP SIGNATURE-----
RE: NYIException, Regier Avery J, 2003/09/26
Re: NYIException, Dalibor Topic, 2003/09/27
RE: NYIException, Jeroen Frijters, 2003/09/27
- Re: NYIException,
Michael Koch <=
RE: NYIException, Jeroen Frijters, 2003/09/27
RE: NYIException, Jeroen Frijters, 2003/09/28