Natala, Benjamin J | 26 Apr 2012 16:11
Picon
Favicon

raising DoNotSend from python is not caught

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

Hi,

 

I’m using the python version of quickfix 1.13.3. It seems that throwing a DoNotSend exception from python does not prevent messages from being sent. I’m guessing the exceptions are contained in python and do not reach the c++ layer.

 

Can anyone confirm this? Is there another way I can prevent messages from being sent?

 

Thanks,

Ben

This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
(Continue reading)

Natala, Benjamin J | 27 Apr 2012 16:18
Picon
Favicon

Re: raising DoNotSend from python is not caught

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

Upon further testing and looking at the c++ code, I realized I was making a mistake. Raising DoNotSend only
works in toApp. Earlier I was trying to raise the exception in toAdmin.

I also thought the exceptions were not reaching the try block in c++ but I can confirm throwing DoNotSend in
toApp from python does indeed work. I would still like to be able to stop admin messages from being sent but
at the moment, I'm not sure how to achieve that.

Thanks,
Ben

-----Original Message-----
From: Natala, Benjamin J 
Sent: Thursday, April 26, 2012 10:11 AM
To: quickfix-developers@...
Subject: [Quickfix-developers] raising DoNotSend from python is not caught

QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html
QuickFIX Support: http://www.quickfixengine.org/services.html

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

------------------------------------------------------------------------------
Live Security Virtual Conference
(Continue reading)


Gmane