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: Fri, 26 Sep 2003 17:56:25 +0200
User-agent: KMail/1.5.2

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

Am Freitag, 26. September 2003 17:33 schrieb Sascha Brawer:
> Hi Andy,
>
> >> [NotYetImplementedException]
> >
> > [JavaDoc tag]
> >
> >Do you mean additionally to the exception or instead?
>
> With a JavaDoc tag (or some other convention for comments), there
> would be no need to distinguish between
> NotYetImplementedException_1_3, NotYetImplementedException_1_4,
> etc.
>
> I agree that some exception should be thrown. But it might suffice
> to just throw java.lang.UnsupportedOperationException. Not that I
> would oppose a special NotYetImplementedException. Living in a
> neutral country, I don't have an explicit opinion about such
> matters. :-)

I'm for UnsupportedOperationException too because it exists already 
and dont have to invent something new.

A reason against using it is that some methods return UOE by design in 
some situations. That means that i may not be clear in any case if 
the method throwns an exception because its unimplementd or because 
of other reasons.


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

iD8DBQE/dGGqWSOgCCdjSDsRAvuNAKCMksQtOJr8Ga6eNjFeJiVYotBPygCfZgey
l0YjZDXcnpIWl1fgrdSJlwY=
=WQ/V
-----END PGP SIGNATURE-----





reply via email to

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