Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 08 Sep 2013 06:39:23 -0500 Date: Sun, 08 Sep 2013 12:39:21 +0100 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Primitive return value after exception in method References: <5222eb58$0$6555$9b4e6d93@newsspool4.arcor-online.net> <52236225$0$296$14726298@news.sunsite.dk> <522373f2$0$6568$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <7PidnXZ_D8p2_LHPnZ2dnUVZ8oidnZ2d@bt.com> Lines: 29 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-HDTXvq6Y5RRJELwXR/yVlwX7YcDdlWAV/8BX1SAkgZhD9eyB+lXb0mn4lvJs3TlTTd5OqLoFPPwVYxQ!mDGWzMRklZUAk5ysIZVydry5gVgcaUFlTpQV7+wLfkVj2dht+VrR/Cdh4Aia8ph/PBfG2P+M2Q== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2566 Xref: csiph.com comp.lang.java.programmer:25247 On 08/09/13 10:16, Richard Maher wrote: > On 9/8/2013 4:12 PM, lipska the kat wrote: > n >> why in the name of sanity would anyone want to rely in any way on a >> value 'returned' from a method that has thrown an exception? > > I don't recall ANYONE except YOU introducing the "rely" terminology. Why else would you care what the return value from a method that throws an exception is. If you are not interested in it then why bother to concern yourself with it in the first place, it's pretty simple really. If you want to see some value the use a debug statement or wrap it in the exception. Examining anything other than the exception in an exceptional situation doesn't compute. > Personally I'm chasing down a few bugs and got useful advice from > technically competent people like Patricia that ruled out some of the > more crazy options I was considering. How interesting. -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun GNU/Linux user #560883 - http://www.linuxcounter.net