Skip to content

MissingValuesColumnError

Bases: Exception

Exception raised for trying to do operations on columns containing missing values.

Source code in src/safeds/exceptions/_data.py
class MissingValuesColumnError(Exception):
    """Exception raised for trying to do operations on columns containing missing values."""

    def __init__(self, column_info: str, help_msg: str | None = None) -> None:
        line_break = "\n"
        super().__init__(
            "Tried to do an operation on one or multiple columns containing missing values:"
            f" \n{column_info}{line_break + help_msg if help_msg is not None else ''}",
        )

__init__(column_info, help_msg=None)

Source code in src/safeds/exceptions/_data.py
def __init__(self, column_info: str, help_msg: str | None = None) -> None:
    line_break = "\n"
    super().__init__(
        "Tried to do an operation on one or multiple columns containing missing values:"
        f" \n{column_info}{line_break + help_msg if help_msg is not None else ''}",
    )