def filter_errors(errors, select=None, ignore=None, **params):
    """Filter errors by select and ignore options.

    :return bool:

    """
    select = select or []
    ignore = ignore or []
    for e in errors:
        for s in select:
            if e.number.startswith(s):
                yield e
                break
        else:
            for s in ignore:
                if e.number.startswith(s):
                    break
            else:
                yield e
