Skip to content

ColumnIsTimeError

Bases: IllegalSchemaModificationError

Exception raised in overriden methods of the Table class when removing Time Columns from a TimeSeries.

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

    def __init__(self, column_name: str) -> None:
        super().__init__(f'Column "{column_name}" is the time 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 time column and cannot be removed.')