Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: can't throw Date: Wed, 12 Sep 2012 20:55:11 -0700 Organization: Canadian Mind Products Lines: 16 Message-ID: References: <19af6b94-7a1e-4491-afb2-79782406f560@googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:18721 On Tue, 11 Sep 2012 13:16:38 -0700 (PDT), bob smith wrote, quoted or indirectly quoted someone who said : > >In particular, I'm subclassing Thread and can't throw an Exception in the run method. I suspect this is a more general issue though. try throwing an IllegalArgumentException or the like instead. You don't need to declare it. -- Roedy Green Canadian Mind Products http://mindprod.com A new scientific truth does not triumph by convincing its opponents and making them see the light, but rather because its opponents eventually die, and a new generation grows up that is familiar with it. ~ Max Planck 1858-04-23 1947-10-04