Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!fi.sn.net!newsfeed2.tdcnet.fi!news.song.fi!not-for-mail From: Jukka Lahtinen Newsgroups: comp.lang.java.help Subject: Re: Catching Thrown Exceptions Organization: none References: <6693b355-c89b-4855-b6d3-0ed7e532cc88@c21g2000yqi.googlegroups.com> X-no-archive: yes Date: Wed, 22 Feb 2012 14:02:13 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:oZpJc0qHSMB3zFTFcXlgn9we4bc= MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Lines: 24 NNTP-Posting-Host: 81.17.207.67 X-Trace: 1329912132 news.tdc.fi 2786 81.17.207.67:47408 X-Complaints-To: abuse@tdcnet.fi Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.help:1594 Davej writes: > On Feb 21, 12:36 am, Davej wrote: >> I figured that if you threw an exception inside a try it would be >> caught. No? In my Java program the throw was not caught. In C# this is >> the way things work. > > Ok, I apologize for not including specific details. This is a jsp file > and I had the following inside a try block... > > if ( condition ) > { > throw exception; > } What the others said, and.. I can't see variables condition and exception defined anywhere. Or a try block. Or a catch block. So, I guess the error must be on line 42. Or line 16514. Or somewhere between, before, or after them. -- Jukka Lahtinen