Re: [Quickfix-developers] =?ISO-8859-1?Q?R=E9f=2E_=3A_Re=3A_?= =?ISO-8859-1?Q?RE_=3A_Re=3A_=5BQuick
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-04-27 15:53:37
|
Indeed, you are correct. If a C++ method does not declare a throw specifier, the exception would get propogated up to the caller. This behavior changes if there is a throw specifier. In this case if an exception thrown that was not declared, std::unexpected() is called. This is a legitimate bug. --oren ily...@bn... wrote: >QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html >QuickFIX Support: http://www.quickfixengine.org/services.html > >I'm not a very experienced developer, so I might be wrong, but there are 2 >reasons why I disagree with what you're saying: > >1. I did catch everything I could in my application. Catching (...) didn't >prevent the application from crashing. >2. The exception is not thrown by SendToTarget, which I'm calling, but by >SendRaw, which I'm not calling directly. It is not specified in the SendRaw >signature that it can throw the FieldNotFound exception. Which it does. > >If you know a way to handle this kind of situation differently, I'm >interested to hear it (or read it). > >Thanks, >Ilyas > > > > >Internet >cal...@gm... - 04/27/2006 04:08 PM > > >Pour : Ilyas USAL > >cc : quickfix-developers > > >Objet : Re: RE : Re: [Quickfix-developers] Uncatched exception > > > >On 4/27/06, ily...@bn... <ily...@bn...> wrote: > > > >>Well, I would expect the programme to throw an exception when it crashes, >>that's all. I guess you're trying to tell me that the word "bug" is >>inappropriate, and in that case I agree with you. >> >> > >QuickFIX threw an exception. Your Application didn't catch it, so it >crashed. This is standard behavior. > >-- >Caleb Epstein > caleb dot epstein at gmail dot com > > > > >This message and any attachments (the "message") is >intended solely for the addressees and is confidential. >If you receive this message in error, please delete it and >immediately notify the sender. Any use not in accord with >its purpose, any dissemination or disclosure, either whole >or partial, is prohibited except formal approval. The internet >can not guarantee the integrity of this message. >BNP PARIBAS (and its subsidiaries) shall (will) not >therefore be liable for the message if modified. > > --------------------------------------------- > >Ce message et toutes les pieces jointes (ci-apres le >"message") sont etablis a l'intention exclusive de ses >destinataires et sont confidentiels. Si vous recevez ce >message par erreur, merci de le detruire et d'en avertir >immediatement l'expediteur. Toute utilisation de ce >message non conforme a sa destination, toute diffusion >ou toute publication, totale ou partielle, est interdite, sauf >autorisation expresse. L'internet ne permettant pas >d'assurer l'integrite de ce message, BNP PARIBAS (et ses >filiales) decline(nt) toute responsabilite au titre de ce >message, dans l'hypothese ou il aurait ete modifie. > > > >------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >Quickfix-developers mailing list >Qui...@li... >https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > |