INNER CODE UNIT · Python

ColonError

snakemake/snakefmt · snakefmt/exceptions.py:19

def ColonError(line_nb: str, identifier: str, keyword_line: str):
    raise SyntaxError(
        f"{line_nb}Colon (not '{identifier}') expected after " f"'{keyword_line}'"
    )


def NewlineError(line_nb: str, keyword_line: str):
    raise SyntaxError((f"{line_nb}Newline expected after keyword " f"'{keyword_line}'"))


def SyntaxFormError(line_nb: str, keyword_line: str, syntax_form: str):
    raise SyntaxError(f"{line_nb}'{keyword_line}' not of form '{syntax_form}'")


class InvalidParameterSyntax(Exception):
    pass

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…