Re: [Quickfix-developers] Exception of type 'QuickFix.FieldNotFound' was thrown -- How do I get rid
Brought to you by:
orenmnero
From: mr a. <mr...@gm...> - 2008-02-20 07:10:24
|
What a beautiful thing! Absolutely exquisite. thanks! azmat On Feb 20, 2008 12:11 AM, Patrick Wright <pw...@ka...> wrote: > You can use the isSet methods: > > ExecID execID = new ExecID(); > if (message.isSetExecID()) > execID = message.getExecID(); > > ... > > Patrick > > > > -----Original Message----- > From: qui...@li... > [mailto:qui...@li...] On Behalf Of > azmat > Sent: Wednesday, 20 February 2008 11:06 AM > To: qui...@li... > Subject: [Quickfix-developers] Exception of type > 'QuickFix.FieldNotFound' was thrown -- How do I get rid of it? > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > All- > > Again many thanks to all of those who have helped me in the past, and I > hope > these emails help others in using QuickFix. Here is my question for > today: > > I have this line in my onMessage method (for execution reports): > > if(execrpt.get(new OrigClOrdID()) != null) OR if(execrpt.get(new > OrigClOrdID()).ToString() != "") > > The problem is that when an execution report is returned to me without > an > OrigClOrID (for instance in response to a non-update message), my > application throws an exception. This is the error that it gives me: > > Exception of type 'QuickFix.FieldNotFound' was thrown. > > Obviously what I want to do is find out IF the OrigClOrdID field is used > at > all in the execution report. If so, I'd like to save it (to later be > used > in one of our internal proprietary systems). How can I do this? > > merci! > azmat > > -- > View this message in context: > http://www.nabble.com/Exception-of-type-%27QuickFix.FieldNotFound%27-was > -thrown----How-do-I-get-rid-of-it--tp15579387p15579387.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |