Skip to content

exception

zeus.exception

Base Zeus Exception Class.

ZeusBaseError

Bases: Exception

Zeus base exception class.

Source code in zeus/exception.py
 4
 5
 6
 7
 8
 9
10
11
12
13
14
class ZeusBaseError(Exception):
    """Zeus base exception class."""

    def __init__(self, message: str) -> None:
        """Initialize Base Zeus Exception."""
        self.message = message
        super().__init__(message)

    def __str__(self) -> str:
        """Return message."""
        return self.message

__init__

__init__(message)
Source code in zeus/exception.py
 7
 8
 9
10
def __init__(self, message: str) -> None:
    """Initialize Base Zeus Exception."""
    self.message = message
    super().__init__(message)

__str__

__str__()

Return message.

Source code in zeus/exception.py
12
13
14
def __str__(self) -> str:
    """Return message."""
    return self.message