[QFJ-402] Provide useful exception description for IncorrectTagValue, NoTagValue and other FIX specific exceptions Created: 10/Feb/09  Updated: 11/Feb/09  Resolved: 10/Feb/09

Status: Closed
Project: QuickFIX/J
Component/s: Engine
Affects Version/s: 1.3.1, 1.3.2, 1.3.3
Fix Version/s: 1.4.0

Type: Bug Priority: Default
Reporter: Jörg Thönnes Assignee: Laurent Danesi
Resolution: Fixed Votes: 0
Labels: None


 Description   

The FieldNotFound exception contains a useful exception description, which can be fetched with e.getMessage():

    public FieldNotFound(int field) {
        super("Field ["+field+"] was not found in message.");
        this.field = field;
    }

but other FIX exceptions as IncorrectTagValue or NoTagValue etc. lacks these description text.
This is not consistent with the second constructor using a String description text.

Provide useful description text for IncorrectTagValue, NoTagValue and possibly other FIX exceptions.



 Comments   
Comment by Jörg Thönnes [ 10/Feb/09 ]

Laurent, for the moment I would like to resolve this issue as fixed.

There are a couple of other exception migrated from the C++ JNI API, which need improvements:

  • missing exception descriptions
  • constructors lacking description messages

I removed two constructors from the NoTagValue exception, but now I am unsure whether this breaks the C++ JNI API compatibility. Please re-add the constructors if you think so.

Please include this in the 1.4.0 release hopefully coming soon.

Generated at Sun May 12 21:59:05 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.