Re: [Quickfix-developers] Conditionally Required Fields / Business Message Reject
Brought to you by:
orenmnero
From: Mike G. <mg...@co...> - 2008-09-10 18:11:22
|
DKL-Gator wrote: > I believe what I was doing was attempting to "get" a field that wasn't there. > So I need to check for the presence of the field with isSet before getting it. You are correct: get() will throw a FieldNotFound exception if the field is not set. If FieldNotFound is thrown from the fromApp() callback, quickfix will send a "conditionally required field missing" rejection. So, calling isSet() works, but you can also enclose your get() code in a try-catch block to prevent FieldNotFound from being thrown out of fromApp(). -- Mike Gatny Connamara Systems, LLC http://www.connamara.com/ |