Ignore:
Timestamp:
Aug 31, 2021, 11:38:43 AM (3 years ago)
Author:
Jacob Prud'homme <jafprudhomme@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
Children:
692db791
Parents:
dcf792a
Message:

Added message function for exceptions I've created

Also removed constructor declarations from header file, as they are unnecessary

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/parseconfig.cfa

    rdcf792a ra75cd3d  
    1616}
    1717
     18void msg( Missing_Config_Entries * ex ) {
     19        serr | "The config file is missing " | ex->num_missing | " entries";
     20}
     21
    1822
    1923static vtable(Parse_Failure) Parse_Failure_vt;
     
    3337}
    3438
     39void msg( Parse_Failure * ex ) {
     40        serr | "Config entry " | ex->failed_key | " could not be parsed. It has value " | ex->failed_value | ".";
     41}
     42
    3543
    3644static vtable(Validation_Failure) Validation_Failure_vt;
     
    4957        free( failed_value );
    5058}
     59
     60void msg( Validation_Failure * ex ) {
     61        serr | "Config entry " | ex->failed_key | " could not be validated. It has value " | ex->failed_value | ".";
    5162}
    5263
Note: See TracChangeset for help on using the changeset viewer.