Article View: aus.computers.java
Article #195Re: throwing exceptions
From: Moth
Date: Sat, 19 Apr 2003 22:55
Date: Sat, 19 Apr 2003 22:55
18 lines
2050 bytes
2050 bytes
As well as closing the pod bay doors, you may also need to notify the object
that called the method that an exception has been thrown, otherwise it may
not realise that something went wrong.
"Mike Crenshaw" <crenshaw@worldonline.dk> wrote in message
news:Xxboa.22515$y3.1976088@news010.worldonline.dk...
> > Cleaning up before giving up:
>
> > catch (CannotEnterPodException e) {
> > hal.closePodBayDoors();
> > throw e;
> > }
>
> hmm i still dont follow you.. you can execute the hal.closePodBayDoors()
> without the throw e anyway cant you?
>
>
Technical Details
Message-ID:
<Ftkoa.2137$8K2.15274@news-server.bigpond.net.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!abnormal.com!vicpull2.telstra.net!lon-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mailReferences:
<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> <Xxboa.22515$y3.1976088@news010.worldonline.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,36528a6761383b70 X-Google-Attributes: gid10d6db,public X-Google-Thread: f5d71,36528a6761383b70 X-Google-Attributes: gidf5d71,public X-Google-Thread: 113ae9,36528a6761383b70 X-Google-Attributes: gid113ae9,public X-Google-ArrivalTime: 2003-04-19 15:55:39 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!abnormal.com!vicpull2.telstra.net!lon-transit.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!not-for-mail From: "Moth" <no@email.here> 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> <Xxboa.22515$y3.1976088@news010.worldonline.dk> Subject: Re: throwing exceptions Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <Ftkoa.2137$8K2.15274@news-server.bigpond.net.au> Date: Sat, 19 Apr 2003 22:55:33 GMT NNTP-Posting-Host: 203.45.137.150 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1050792933 203.45.137.150 (Sun, 20 Apr 2003 08:55:33 EST) NNTP-Posting-Date: Sun, 20 Apr 2003 08:55:33 EST Organization: BigPond Internet Services (http://www.bigpond.net.au)