@staticmethod<EOL><INDENT>def create(obj: PersistedObject, obj_type: Type[T], errors: Dict[Type, Exception]):<DEDENT>
e = NoParserFoundForUnionType('<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'.format(obj=obj, typ=get_pretty_type_str(obj_type), errs=errors))<EOL>e.errors = errors<EOL>return e<EOL>
Helper method provided because we actually can't put that in the constructor, it creates a bug in Nose tests
https://github.com/nose-devs/nose/issues/725

:param obj:
:param errors: a dictionary of the errors raised for each alternate type tried
:return: