🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #190

Re: Exception Question

#190
From: Kevin Dean [TeamB]
Date: Wed, 10 May 2006 20:40
26 lines
2114 bytes
Raul Lorenzo wrote:

>I have for example the code i attached,
>I think that if A.DeleteItem causes an exception, it should be caught in
>Doit_subexample, isn�t it? In Init() there isn�t any try, catch.
>I have a code similar to this I attached, an the exception isn�t
>catched. Why?

Your assumption about your code is correct.  However, it is possible to 
bypass this if the error being thrown descends from java.lang.Error rather 
than java.lang.Exception; both of them have as their base class 
java.lang.Throwable.  A java.lang.Error, however, indicates a serious 
error, one that your application is not expected to recover from.

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <xn0em2eq4juhgy001-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!sp6iad.superfeed.net!in2.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4461bfa5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,b3574edecfc0aa7
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII
Subject: Re: Exception Question
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Date: 10 May 2006 13:40:22 -0700
Message-ID: <xn0em2eq4juhgy001-kdean@www.teamb.com>
References: <4461bfa5@newsgroups.borland.com>
Lines: 26
NNTP-Posting-Host: 70.27.198.51
Organization: Dolphin Data Development Ltd.
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!sp6iad.superfeed.net!in2.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
Newsgroups: borland.public.jbuilder.java.language
X-Authenticated-User: kdean
X-Trace: newsgroups.borland.com 1147293622 70.27.198.51 (10 May 2006 13:40:22 -0700)
User-Agent: XanaNews/1.18.1.3
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
X-Ref: newsgroups.borland.com ~XNS:00000547
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding: 8bit