def _get_exceptions_db(self):
template = "<STR_LIT>"<EOL>if not self._full_cname:<EOL><INDENT>ret = []<EOL>for _, fdict in self._ex_dict.items():<EOL><INDENT>for key in fdict.keys():<EOL><INDENT>ret.append(<EOL>{<EOL>"<STR_LIT:name>": fdict[key]["<STR_LIT:name>"],<EOL>"<STR_LIT:data>": template.format(<EOL>extype=_ex_type_str(key[<NUM_LIT:0>]),<EOL>exmsg=key[<NUM_LIT:1>],<EOL>raised="<STR_LIT:*>" if fdict[key]["<STR_LIT>"][<NUM_LIT:0>] else "<STR_LIT>",<EOL>),<EOL>}<EOL>)<EOL><DEDENT><DEDENT>return ret<EOL><DEDENT>ret = []<EOL>for fdict in self._ex_dict.values():<EOL><INDENT>for key in fdict.keys():<EOL><INDENT>for func_name in fdict[key]["<STR_LIT>"]:<EOL><INDENT>rindex = fdict[key]["<STR_LIT>"].index(func_name)<EOL>raised = fdict[key]["<STR_LIT>"][rindex]<EOL>ret.append(<EOL>{<EOL>"<STR_LIT:name>": self.decode_call(func_name),<EOL>"<STR_LIT:data>": template.format(<EOL>extype=_ex_type_str(key[<NUM_LIT:0>]),<EOL>exmsg=key[<NUM_LIT:1>],<EOL>raised="<STR_LIT:*>" if raised else "<STR_LIT>",<EOL>),<EOL>}<EOL>)<EOL><DEDENT><DEDENT><DEDENT>return ret<EOL>
Return a list of dictionaries suitable to be used with ptrie module.