Skip to content

Exceptions

dbt-score exceptions.

DuplicatedRuleException

Bases: Exception

Two rules with the same name are defined.

Source code in src/dbt_score/exceptions.py
class DuplicatedRuleException(Exception):
    """Two rules with the same name are defined."""

    def __init__(self, rule_name: str):
        """Instantiate exception."""
        super().__init__(
            f"Rule {rule_name} is defined twice. Rules must have unique names."
        )

__init__(rule_name)

Instantiate exception.

Source code in src/dbt_score/exceptions.py
def __init__(self, rule_name: str):
    """Instantiate exception."""
    super().__init__(
        f"Rule {rule_name} is defined twice. Rules must have unique names."
    )