🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3733

Re: Exception handling

#3733
From: Remy Lebeau (TeamB)
Date: Mon, 13 Jun 2005 22:53
27 lines
2106 bytes
"Jan Slansk" <p.prm@seznam.cz> wrote in message
news:42ae0ad7$1@newsgroups.borland.com...

> OK, Let's talk about one exact exception to prevent speculations - 403
> HTTP/1.1 Forbidden. This is EdIdHTTPProtocolException. I doubt that
> this exception doesn't reach my code.

Yes, it will reach your code, and yes it is catchable in your own code.

> I have seen that friend's Borland Delphi catch it, but my Borland c++
> builder don't.

Again, I highly doubt that.  I can catch it in my BCB without problems.

> I use catch(Exception &e) catch(EIdException &e) and
> catch(EIdHTTPProtocolException &e) but nothing works.

You should be catching by 'const' references, as I already showed you
earlier:

    catch(const Exception &e)
    catch(const EIdException &e)
    catch(const EIdHTTPProtocolException &e)


Gambit
Technical Details
Message-ID: <42ae0fea$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42ada95b@newsgroups.borland.com> <42adbc9f@newsgroups.borland.com> <42ade312$1@newsgroups.borland.com> <42adea88$1@newsgroups.borland.com> <42adf4b0$1@newsgroups.borland.com> <42ae03d6$1@newsgroups.borland.com> <42ae0ad7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a561ce3cd6ae6110
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <42ada95b@newsgroups.borland.com> <42adbc9f@newsgroups.borland.com> <42ade312$1@newsgroups.borland.com> <42adea88$1@newsgroups.borland.com> <42adf4b0$1@newsgroups.borland.com> <42ae03d6$1@newsgroups.borland.com> <42ae0ad7$1@newsgroups.borland.com>
Subject: Re: Exception handling
Date: Mon, 13 Jun 2005 15:53:28 -0700
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42ae0fea$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118703594 68.69.17.41 (13 Jun 2005 15:59:54 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail