Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Robert Klemme Newsgroups: comp.lang.java.programmer Subject: Re: can't throw Date: Wed, 12 Sep 2012 08:31:58 +0200 Lines: 16 Message-ID: References: <19af6b94-7a1e-4491-afb2-79782406f560@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net qbZ7UzZ2XO3qwzyA7/gXVgaAVwXZFc+yjCyc/Qb+AFBJYC2AqYMAemhb8Hi4A09/o= Cancel-Lock: sha1:EnExM9t5Hu0bzco63RYRUB6ow4E= User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:15.0) Gecko/20120824 Thunderbird/15.0 In-Reply-To: <19af6b94-7a1e-4491-afb2-79782406f560@googlegroups.com> Xref: csiph.com comp.lang.java.programmer:18665 On 11.09.2012 22:16, bob smith wrote: > Am I the only one who wanted to throw an Exception but couldn't > because I was overriding a method that threw nothing? > > 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. Why are you subclassing Thread in the first place? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/