[Quickfix-developers] exit on message parse failure
Brought to you by:
orenmnero
From: Alasdair R. <ala...@ja...> - 2008-05-29 14:14:37
|
I am new to quickfix (and in fact Fix). I am writing a very simple app which will connect, and then parse each ExecutionReport message received and put it in a database. This is working fine, but occasionally I get a message which fails for some reason. Hopefully byt the time we get through to production this won't happen, but just in case I would like to exit the program gracefully .. so I can decide whether to do a quick fix or continue processing the next message. So 2 questions 1. Can I somehow propagate an exception to my app thread (and then exit) from within the fromApp() method? (dont particularly want to do an exit(1)) 2. If i do that will quickfix rerequest the message when I start up again (ie at what stage does it record a particular message as processed)? thanks Alasdair Richardson |