Skip to content

Errors

XLOT Exceptions.

AttributeCannotBeDelete

Bases: XLOTException

Exception is raised if the attribute cannot be delete.

Source code in src\xloft\errors.py
19
20
21
22
23
24
class AttributeCannotBeDelete(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)

AttributeDoesNotSetValue

Bases: XLOTException

Exception is raised if the attribute does not setting value.

Source code in src\xloft\errors.py
11
12
13
14
15
16
class AttributeDoesNotSetValue(XLOTException):
    """Exception is raised if the attribute does not setting value."""

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

XLOTException

Bases: Exception

Root Custom Exception.

Source code in src\xloft\errors.py
4
5
6
7
8
class XLOTException(Exception):
    """Root Custom Exception."""

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