def create(converter_func: ConversionMethod, caught: Exception):
        """
        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 converter_func:
        :param caught:
        :return:
        """
        msg = 'Caught TypeError while calling conversion function \'' + str(converter_func.__name__) + '\'. ' \
              'Note that the conversion function signature should be \'' + conversion_method_example_signature_str \
              + '\' (unpacked options mode - default) or ' + multioptions_conversion_method_example_signature_str \
              + ' (unpack_options = False).' \
              + 'Caught error message is : ' + caught.__class__.__name__ + ' : ' + str(caught)
        return CaughtTypeError(msg).with_traceback(caught.__traceback__)
def create ( converter_func : ConversionMethod , caught : Exception ) : msg = 'Caught TypeError while calling conversion function \'' + str ( converter_func . __name__ ) + '\'. ' 'Note that the conversion function signature should be \'' + conversion_method_example_signature_str + '\' (unpacked options mode - default) or ' + multioptions_conversion_method_example_signature_str + ' (unpack_options = False).' + 'Caught error message is : ' + caught . __class__ . __name__ + ' : ' + str ( caught ) return CaughtTypeError ( msg ) . with_traceback ( caught . __traceback__ )
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 converter_func:
        :param caught:
        :return: