Utility method to print an exception's content to a stream

    :param err:
    :param io:
    :param print_big_traceback:
    :return:

def print_error_to_io_stream(err: Exception, io: TextIOBase, print_big_traceback : bool = True):
    """
    Utility method to print an exception's content to a stream

    :param err:
    :param io:
    :param print_big_traceback:
    :return:
    """
    if print_big_traceback:
        traceback.print_tb(err.__traceback__, file=io, limit=-GLOBAL_CONFIG.multiple_errors_tb_limit)
    else:
        traceback.print_tb(err.__traceback__, file=io, limit=-1)
    io.writelines('  ' + str(err.__class__.__name__) + ' : ' + str(err))