🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #200

Re: throwing exceptions

#200
From: .Saphyr
Date: Mon, 21 Apr 2003 19:05
13 lines
1630 bytes
> hal.openPodBayDoors();
> try {
>     pod.enter();
> }
> catch (CannotEnterPodException e) {
>     hal.closePodBayDoors();
>     throw e;
> }


My question might sound basic but whats the point
with the 'finally' statement ? Shouldn't it be used
specifically for those cases ?
Technical Details
Message-ID: <3ea44135$1_2@news.tiscalinet.ch>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.vmunix.org!news.imp.ch!news.imp.ch!news.tiscalinet.ch!not-for-mail
References: <puIna.11699$hF.92186@news-server.bigpond.net.au> <qDIna.110$KS4.52@news.get2net.dk> <ryTna.20910$y3.1898552@news010.worldonline.dk> <3EA0185D.C7B1A753@sun.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5d71,36528a6761383b70
X-Google-Attributes: gidf5d71,public
X-Google-Thread: 10d6db,36528a6761383b70
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 113ae9,36528a6761383b70
X-Google-Attributes: gid113ae9,public
X-Google-ArrivalTime: 2003-04-21 12:06:36 PST
From: ".Saphyr" <saphyr@infomaniak.ch>
Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.help
References: <puIna.11699$hF.92186@news-server.bigpond.net.au> <qDIna.110$KS4.52@news.get2net.dk> <ryTna.20910$y3.1898552@news010.worldonline.dk> <3EA0185D.C7B1A753@sun.com>
Subject: Re: throwing exceptions
Date: Mon, 21 Apr 2003 21:05:59 +0200
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
NNTP-Posting-Host: 212.254.128.26
Message-ID: <3ea44135$1_2@news.tiscalinet.ch>
X-Trace: news.tiscalinet.ch 1050951989 212.254.128.26 (21 Apr 2003 21:06:29 +0200)
Organization: Customers of Tiscali DataComm AG - http://www.tiscali.ch/
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.vmunix.org!news.imp.ch!news.imp.ch!news.tiscalinet.ch!not-for-mail