[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: NYIException
From: |
David Holmes |
Subject: |
RE: NYIException |
Date: |
Mon, 29 Sep 2003 11:12:45 +1000 |
Per Bothner wrote:
> The latter is true, but the former does not follow. I
> think creating
> a new non-portable sub-class is solving a non-existent problem.
Ah I see where you are coming from. If an application wants to run
under a variety of VM's and also wants to deal with Classpath's
limitations, it is not going to be able to compile against a host VM
that doesn't have this Classpath specific exception type. If the
application uses the RuntimeException type in its catch clause then it
will catch genuine RuntimeExceptions too and will have to try and
distinguish them (which means reflectively querying its type for the
Classpath specific exception type).
Using any existing exception type that could never normally be thrown
by these methods when they are implemented, solves this problem. And
UnsupportedOperationException is as semantically close as you'll get
to the right kind of exception.
Note that an optional method that is not yet implemented (how could
you tell? :) ) should always throw UnsupportedOperationException, not
NYIException.
David Holmes
- RE: NYIException, (continued)
- RE: NYIException, Jeroen Frijters, 2003/09/27
- RE: NYIException, Jeroen Frijters, 2003/09/27
- RE: NYIException, Jeroen Frijters, 2003/09/28
- RE: NYIException, Andrew Haley, 2003/09/28
- Re: NYIException, Stephen Crawley, 2003/09/28
- RE: NYIException, David Holmes, 2003/09/28
- Re: NYIException, Per Bothner, 2003/09/28
- RE: NYIException,
David Holmes <=
- Re: NYIException, Dalibor Topic, 2003/09/28
- RE: NYIException, David Holmes, 2003/09/28
- Re: NYIException, Dalibor Topic, 2003/09/28
- RE: NYIException, David Holmes, 2003/09/28
- Re: NYIException, Dalibor Topic, 2003/09/28
- Re: NYIException, Per Bothner, 2003/09/28
- NotYetImplementedError [Was: NYIException], Etienne Gagnon, 2003/09/28
- RE: NotYetImplementedError [Was: NYIException], David Holmes, 2003/09/28
- Re: NotYetImplementedError [Was: NYIException], Dalibor Topic, 2003/09/28
- Re: NotYetImplementedError [Was: NYIException], Etienne Gagnon, 2003/09/28