🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Assertion Error while sending email

#842
From: JLoz
Date: Thu, 02 Aug 2007 18:51
24 lines
2031 bytes
>
>>       if (!UpperCase(E.Message).Pos("RANGE CHECK ERROR")) {
>
> That is not the best way to check for a specific exception type.  You 
> should
> be checking for the ERangeError class specifically instead, ie:
>
>    catch (const Sysutils::ERangeError& E)
>    {
>        // why do you ignore this type of error?
I am ignoring the error because I starting getting it with my test 
application, but the emails were still being sent.  I posted the question on 
7/18 but I never got an answer on this, so I decided to ignore it for now 
while I understand this error and/or find out about a way to prevent it.


>    }
>    catch (const Sysutils::Exception& E)
>    {
>        err = E.Message;
>        Header.Set("Error", E.Message);
>        Header.Set("Result", "0");
>    }
>
Technical Details
Message-ID: <46b227cb@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46ae4529$1@newsgroups.borland.com> <46af7382@newsgroups.borland.com> <3mtua39vadcc2de0p2ertm0fl224sevvu7@4ax.com> <46af7f59$1@newsgroups.borland.com> <46af83cc$1@newsgroups.borland.com> <46af86e7@newsgroups.borland.com> <46afa742$1@newsgroups.borland.com> <46afb0f1$1@newsgroups.borland.com> <46b10f2b$1@newsgroups.borland.com> <46b2253a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,da4e10289ba23828
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "JLoz" <jfsierra@excite.com>
From: "JLoz" <jfsierra@excite.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46ae4529$1@newsgroups.borland.com> <46af7382@newsgroups.borland.com> <3mtua39vadcc2de0p2ertm0fl224sevvu7@4ax.com> <46af7f59$1@newsgroups.borland.com> <46af83cc$1@newsgroups.borland.com> <46af86e7@newsgroups.borland.com> <46afa742$1@newsgroups.borland.com> <46afb0f1$1@newsgroups.borland.com> <46b10f2b$1@newsgroups.borland.com> <46b2253a$1@newsgroups.borland.com>
Subject: Re: Assertion Error while sending email
Date: Thu, 2 Aug 2007 14:51:55 -0400
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: 63.163.143.187
Message-ID: <46b227cb@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1186080715 63.163.143.187 (2 Aug 2007 11:51:55 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail