Skip to content

IllegalFormatError

Bases: Exception

Exception raised when a format is not legal.

Source code in src/safeds/exceptions/_data.py
class IllegalFormatError(Exception):
    """Exception raised when a format is not legal."""

    def __init__(self, formats: list[str] | str) -> None:
        super().__init__(f"This format is illegal. Use one of the following formats: {formats}")