🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #190

Re: throwing exceptions

#190
From: Darryl L. Pierce
Date: Fri, 18 Apr 2003 13:35
25 lines
1637 bytes
In comp.lang.java.help edwin taitz <taitz@bigpond.net.au> wrote:
> is it possible to rethrow an exception.
> and if so how??


try
    {
    istream = new FileInputStream("foo.txt");
    }
catch(IOException error)
    {
    System.out.println("Exception thrown: " + error);
    error.printStackTrace();

    // here's what's important to you
    throw error;
    }

-- 
/**
 * @author Darryl L. Pierce <mcpierce@myrealbox.com>
 * @see    The J2ME FAQ <http://bellsouthpwp.net/m/c/mcpierce/j2mefaq.html">
 * @quote  "What do you care what others think, Mr. Feynman?"
 * @geek   echo '$_ = "Jvtu bopuifs Pfsm ibdlfs."; y/a-z/za-y/; print' | perl
 */
Technical Details
Message-ID: <c31829f060c5f3eed24d4b6a7d033b04@news.teranews.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mail
References: <puIna.11699$hF.92186@news-server.bigpond.net.au>

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: 113ae9,36528a6761383b70
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f5d71,36528a6761383b70
X-Google-Attributes: gidf5d71,public
X-Google-ArrivalTime: 2003-04-18 06:40:00 PST
X-Abuse-Report: abuse@teranews.com
Message-ID: <c31829f060c5f3eed24d4b6a7d033b04@news.teranews.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!news.teranews.com!not-for-mail
Date: Fri, 18 Apr 2003 13:35:47 GMT
Lines: 25
From: "Darryl L. Pierce" <mcpierce@softhome.net>
Subject: Re: throwing exceptions
Newsgroups: aus.computers.java,comp.lang.java,comp.lang.java.help
References: <puIna.11699$hF.92186@news-server.bigpond.net.au>
User-Agent: tin/1.5.17-20030301 ("Bubbles") (UNIX) (Linux/2.4.20-1-686 (i686))