Article View: borland.public.jbuilder.java.api
Article #1042Re: proper/suggested way to compare if one class is an instance of another?
From: PeterH
Date: Wed, 01 May 2002 20:30
Date: Wed, 01 May 2002 20:30
36 lines
1974 bytes
1974 bytes
hhhhmmmm ya, that would make too much sense right? :>
Actually I'm sure there is some reason that I can't think of at the moment,
but that is something I'm going to have to look into. Thanks for the heads
up. :>
"Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> wrote in message
news:3cd028c1$1_1@dnews...
> "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:
<3cd05055$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3ccebd9c_2@dnews> <3ccf3edb_1@dnews> <3cd001c6_2@dnews> <3cd007b4_1@dnews> <3cd0236e$1_1@dnews> <3cd028c1$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 13:37:35 PST From: "PeterH" <!REMOVEBeforeSending!peter@pchenry.com> Newsgroups: borland.public.jbuilder.java.api References: <3ccebd9c_2@dnews> <3ccf3edb_1@dnews> <3cd001c6_2@dnews> <3cd007b4_1@dnews> <3cd0236e$1_1@dnews> <3cd028c1$1_1@dnews> Subject: Re: proper/suggested way to compare if one class is an instance of another? Date: Wed, 1 May 2002 16:30:15 -0400 Lines: 38 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.46.195.190 Message-ID: <3cd05055$1_1@dnews> X-Trace: dnews 1020285013 66.46.195.190 (1 May 2002 13:30:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews