def _validate_edata(self, edata):
<EOL>if edata is None:<EOL><INDENT>return True<EOL><DEDENT>if not (isinstance(edata, dict) or _isiterable(edata)):<EOL><INDENT>return False<EOL><DEDENT>edata = [edata] if isinstance(edata, dict) else edata<EOL>for edict in edata:<EOL><INDENT>if (not isinstance(edict, dict)) or (<EOL>isinstance(edict, dict)<EOL>and (<EOL>("<STR_LIT>" not in edict)<EOL>or ("<STR_LIT>" in edict and (not isinstance(edict["<STR_LIT>"], str)))<EOL>or ("<STR_LIT:value>" not in edict)<EOL>)<EOL>):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Validate edata argument of raise_exception_if method.