🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #462

How to catch the exceptions that occured in the app server?

#462
From: Bill
Date: Wed, 07 Nov 2001 04:18
37 lines
1632 bytes
I defined the method GetAllTables through Type Library and if it occurs
exceptions I want to throw them to the client.
In the app server the code like this:
STDMETHODIMP TrdmBCBPubsImpl::GetAllTables(TVariant* vTables)
{
   try
   {
       //...
   }
   catch(...)
   {
      throw;
   }
}
If exceptions occured in the app server it throws.


In the client the code is:
   TCOMItestDCOM Server;
   Server = CotestDCOM::CreateRemote(WideString("server_name"));
   try

   {

      Server->GetAllTables(...);

   }

   catch(EOleException &E)

   {

      ShowMessage(E.Message);

   }

But the exception occured in the app server couldn't be cought.
Technical Details
Message-ID: <3be8b622_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,c7b8b245e09670b1,start
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-11-06 20:26:40 PST
Reply-To: "Bill" <bill@vip.sina.com>
From: "Bill" <bill@vip.sina.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: How to catch the exceptions that occured in the app server?
Date: Wed, 7 Nov 2001 12:18:49 +0800
Lines: 40
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: 61.144.230.137
Message-ID: <3be8b622_2@dnews>
X-Trace: dnews 1005106722 61.144.230.137 (6 Nov 2001 20:18:42 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!194.42.224.136!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!dnews