Git Product home page Git Product logo

Comments (2)

gbirchmeier avatar gbirchmeier commented on July 2, 2024

Are you new to QuickFIX, by any chance? Your question makes me think you don't have working experience with this engine's C++ or Java predecessors.

To test for field presence, FieldMap (base class of Message) has IsSetField(tag) and IsSetField(IField), and generated Message classes have IsSetXXX() fields for field in the message. You should be using these.

What are you thinking you need to try/catch? You should not be catching FieldNotFound exceptions, for the most part. Those are used by the engine; when an OnMessage() callback throws one, the engine catches it and sends a reject to the counterparty. The assumption here is that you required a field, and the counterparty didn't obey your requirement. (If it was an optional field, you should have checked for it first with one of the IsSet fields.)

I'm inclined to close this Issue, unless you have a further case for it. I don't see it as a bug or as a needed feature.

from quickfixn.

NetTecture avatar NetTecture commented on July 2, 2024

As new as it gets ;) THis is quite a lot about .NET standard behavior, though - I can see cases where the exception gets ugly.

Actually ;) I just confirmed - there areIsSetXXX methods. Sorry. Closing.

from quickfixn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.