Changeset e1e506b


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

Added exception for when there are missing config entries

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    rc166f4e re1e506b  
    88// *********************************** exceptions ***********************************
    99
     10
     11static vtable(Missing_Config_Entries) Missing_Config_Entries_vt;
     12
     13void ?{}( Missing_Config_Entries & this ) with ( this ) {
     14        virtual_table = &Missing_Config_Entries_vt;
     15}
    1016
    1117static vtable(Parse_Failure) Parse_Failure_vt;
     
    136142                }
    137143        }
     144        if ( entries_so_far < num_entries ) {
     145                delete( kv_pairs );
     146                throw (Missing_Config_Entries){};
     147        }
    138148
    139149        delete( kv_pairs );
  • libcfa/src/parseconfig.hfa

    rc166f4e re1e506b  
    5858
    5959
     60exception Missing_Config_Entries {};
     61
     62void ?{}( Missing_Config_Entries & this );
     63
    6064exception Parse_Failure {};
    6165
Note: See TracChangeset for help on using the changeset viewer.