On Thu, 2005-09-15 at 09:50 -0600, Tom Tromey wrote:
> >>>>> "David" == David Daney <[EMAIL PROTECTED]> writes:
> 
> David> Anthony Green wrote:
> >> -    // XXX - Ignore coding exceptions? They shouldn't really happen.
> >> -    return null;
> >> +    // This shouldn't really happen.
> >> +    throw new Error(e);
> 
> David> Whould it be better to use InternalError?  That is a little
> David> more specific.
> 
> Yeah, I thought we had a rule about this, but I can't find it now.  I
> think InternalError makes sense here (and furthermore should be in
> hacking.texinfo).  Comments?

InternalError doesn't let you specify a "cause" Exception, which is
handy in this case.

AG




_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to