🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1040

Re: proper/suggested way to compare if one class is an instance of another?

#1040
From: Gillmer J. Derge [TeamB]
Date: Wed, 01 May 2002 17:41
22 lines
1683 bytes
"PeterH" <!REMOVEBeforeSending!peter@pchenry.com> wrote in message
news:3cd0236e$1_1@dnews...
> re planning to do?
> Actually, it was used to check types of exceptions being thrown/caught.
We
> are catching Exception, but we need to figure out a bit more about it to
> know if we want to continue passing it on, or actually change it to one
of
> our own exceptions.

Is there a reason why you don't want to do this?

    try {
      foo();
    } catch (ExceptionClass1 e) {
    } catch (ExceptionClass2 e) {
    } catch (ExceptionClass3 e) {
    } catch (ExceptionClass4 e) {
    }

--
Gillmer J. Derge [TeamB]
Technical Details
Message-ID: <3cd028c1$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3ccebd9c_2@dnews> <3ccf3edb_1@dnews> <3cd001c6_2@dnews> <3cd007b4_1@dnews> <3cd0236e$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4bc02a730daffc47
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-05-01 11:04:43 PST
From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3ccebd9c_2@dnews> <3ccf3edb_1@dnews> <3cd001c6_2@dnews> <3cd007b4_1@dnews> <3cd0236e$1_1@dnews>
Subject: Re: proper/suggested way to compare if one class is an instance of another?
Date: Wed, 1 May 2002 13:41:44 -0400
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 66.67.129.227
Message-ID: <3cd028c1$1_1@dnews>
X-Trace: dnews 1020274881 66.67.129.227 (1 May 2002 10:41:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews