Article View: aus.computers.java
Article #192Re: throwing exceptions
From: Eric Sosman
Date: Fri, 18 Apr 2003 15:23
Date: Fri, 18 Apr 2003 15:23
20 lines
1869 bytes
1869 bytes
Mike Crenshaw wrote:
>
> > throw e;
>
> whats the point of rethrowing exceptions?
Cleaning up before giving up:
hal.openPodBayDoors();
try {
pod.enter();
}
catch (CannotEnterPodException e) {
hal.closePodBayDoors();
throw e;
}
...
--
Eric.Sosman@sun.com
Technical Details
Message-ID:
<3EA0185D.C7B1A753@sun.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!newsfeed1.easynews.com!easynews.com!easynews!crtntx1-snh1.gtei.net!atlnga1-snf1.ops.genuity.net!news.gtei.net!cltea-news-1.sun.com!news1brm.central.sun.com!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>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-18 08:35:04 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator2-sterling!in.nntp.be!newsfeed1.easynews.com!easynews.com!easynews!crtntx1-snh1.gtei.net!atlnga1-snf1.ops.genuity.net!news.gtei.net!cltea-news-1.sun.com!news1brm.central.sun.com!not-for-mail From: Eric Sosman <Eric.Sosman@sun.com> Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.help Subject: Re: throwing exceptions Date: Fri, 18 Apr 2003 11:23:09 -0400 Organization: Sun Microsystems Lines: 20 Message-ID: <3EA0185D.C7B1A753@sun.com> References: <puIna.11699$hF.92186@news-server.bigpond.net.au> <qDIna.110$KS4.52@news.get2net.dk> <ryTna.20910$y3.1898552@news010.worldonline.dk> Reply-To: Eric.Sosman@Sun.COM NNTP-Posting-Host: tardis.east.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news1brm.Central.Sun.COM 1050679389 26806 129.148.168.113 (18 Apr 2003 15:23:09 GMT) X-Complaints-To: usenet@news1brm.central.sun.com NNTP-Posting-Date: Fri, 18 Apr 2003 15:23:09 +0000 (UTC) X-Mailer: Mozilla 4.79C-CCK-MCD [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en