Skip to content

Errors

XLOT Exceptions.

AttributeCannotBeDeleteError

Bases: XLOTException

Exception is raised if the attribute cannot be delete.

Source code in src/xloft/errors.py
class AttributeCannotBeDeleteError(XLOTException):
    """Exception is raised if the attribute cannot be delete."""

    def __init__(self, attribute_name: str) -> None:  # noqa: D107
        self.message = f"The attribute `{attribute_name}` cannot be delete!"
        super().__init__(self.message)

AttributeDoesNotGetValueError

Bases: XLOTException

Exception is raised if the attribute tries to get a value.

Source code in src/xloft/errors.py
class AttributeDoesNotGetValueError(XLOTException):
    """Exception is raised if the attribute tries to get a value."""

    def __init__(self, attribute_name: str) -> None:
        self.message = f"The attribute `{attribute_name}` does not get value!"
        super().__init__(self.message)

AttributeDoesNotSetValueError

Bases: XLOTException

Exception is raised if the attribute tries to set a value.

Source code in src/xloft/errors.py
class AttributeDoesNotSetValueError(XLOTException):
    """Exception is raised if the attribute tries to set a value."""

    def __init__(self, attribute_name: str) -> None:  # noqa: D107
        self.message = f"The attribute `{attribute_name}` does not set value!"
        super().__init__(self.message)

XLOTException

Bases: Exception

Root Custom Exception.

Source code in src/xloft/errors.py
class XLOTException(Exception):
    """Root Custom Exception."""

    def __init__(self, *args, **kwargs) -> None:  # type: ignore[no-untyped-def]# noqa: D107
        super().__init__(*args, **kwargs)