Changeset 3be4078


Ignore:
Timestamp:
Aug 31, 2021, 1:49:10 AM (5 months ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
jacob/cs343-translation, master
Children:
dcf792a
Parents:
e1e506b
git-author:
Jacob Prud'homme <jafprudhomme@…> (08/24/21 13:21:32)
git-committer:
Jacob Prud'homme <jafprudhomme@…> (08/31/21 01:49:10)
Message:

Added more info to "missing config entry" exception

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    re1e506b r3be4078  
    1111static vtable(Missing_Config_Entries) Missing_Config_Entries_vt;
    1212
    13 void ?{}( Missing_Config_Entries & this ) with ( this ) {
     13void ?{}( Missing_Config_Entries & this, unsigned int num_missing ) with ( this ) {
    1414        virtual_table = &Missing_Config_Entries_vt;
     15        missing = num_missing;
    1516}
    1617
     
    144145        if ( entries_so_far < num_entries ) {
    145146                delete( kv_pairs );
    146                 throw (Missing_Config_Entries){};
     147                throw (Missing_Config_Entries){ num_entries - entries_so_far };
    147148        }
    148149
  • libcfa/src/parseconfig.hfa

    re1e506b r3be4078  
    5858
    5959
    60 exception Missing_Config_Entries {};
     60exception Missing_Config_Entries {
     61        unsigned int missing;
     62};
    6163
    6264void ?{}( Missing_Config_Entries & this );
Note: See TracChangeset for help on using the changeset viewer.