Skip to content

TransformerNotFittedError

Bases: Exception

Raised when a transformer is used before fitting it.

Source code in src/safeds/exceptions/_data.py
class TransformerNotFittedError(Exception):
    """Raised when a transformer is used before fitting it."""

    def __init__(self) -> None:
        super().__init__("The transformer has not been fitted yet.")