Skip to content

ColumnIsTargetError

Bases: IllegalSchemaModificationError

Exception raised in overriden methods of the Table class when removing tagged Columns from a TaggedTable.

Source code in src/safeds/exceptions/_data.py
class ColumnIsTargetError(IllegalSchemaModificationError):
    """Exception raised in overriden methods of the Table class when removing tagged Columns from a TaggedTable."""

    def __init__(self, column_name: str) -> None:
        super().__init__(f'Column "{column_name}" is the target column and cannot be removed.')

__init__(column_name)

Source code in src/safeds/exceptions/_data.py
def __init__(self, column_name: str) -> None:
    super().__init__(f'Column "{column_name}" is the target column and cannot be removed.')