@staticmethod<EOL><INDENT>def create(parser_func: Union[ParsingMethodForStream, ParsingMethodForFile], caught: Exception):<DEDENT>
msg = '<STR_LIT>' + str(parser_func.__name__) + '<STR_LIT>''<STR_LIT>' + parsing_method_stream_example_signature_str+ '<STR_LIT>' + parsing_method_file_example_signature_str + '<STR_LIT>''<STR_LIT>' + caught.__class__.__name__ + '<STR_LIT>' + str(caught)<EOL>return CaughtTypeError(msg).with_traceback(caught.__traceback__)<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 parser_func:
:param caught:
:return: