def _flatten_ex_dict(self):
odict = {}<EOL>for _, fdict in self._ex_dict.items():<EOL><INDENT>for (extype, exmsg), value in fdict.items():<EOL><INDENT>key = value["<STR_LIT:name>"]<EOL>odict[key] = copy.deepcopy(value)<EOL>del odict[key]["<STR_LIT:name>"]<EOL>odict[key]["<STR_LIT:type>"] = extype<EOL>odict[key]["<STR_LIT>"] = exmsg<EOL><DEDENT><DEDENT>return odict<EOL>
Flatten structure of exceptions dictionary.