diff options
Diffstat (limited to 'errors_map.mako.hpp')
-rw-r--r-- | errors_map.mako.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/errors_map.mako.hpp b/errors_map.mako.hpp new file mode 100644 index 0000000..b04f00e --- /dev/null +++ b/errors_map.mako.hpp @@ -0,0 +1,18 @@ +## This file is a template. The comment below is emitted +## into the rendered file; feel free to edit this file. +// !!! WARNING: This is a GENERATED Code..Please do NOT Edit !!! +#include <map> +using EType = std::string; +using Error = std::string; +using ErrorList = std::vector<Error>; +using ErrorMap = std::map<EType, std::vector<Error>>; + +const ErrorMap errorMap = { +% for key, errors in errDict.items(): + {"${key}", { + % for error in errors: + "${error}", + % endfor + }}, +% endfor +}; |