classpath-patches
[Top][All Lists]
Advanced

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

Re: [cp-patches] Patch: improve error handling in String


From: Robert Schuster
Subject: Re: [cp-patches] Patch: improve error handling in String
Date: Fri, 16 Sep 2005 15:22:45 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.11) Gecko/20050830

> +     // This shouldn't really happen.
> +        InternalError ie = new InternalError();
> +     ie.initCause(e);
> +     throw ie;
>        }        
>    }
Usually people write this in the form.

throw (InternalError) new InternalError().initCause(e);

cu
Robert




reply via email to

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