Skip to content

errors

BaseError

Bases: Exception

The base error all wom errors inherit from.

Source code in unkey/errors.py
6
7
8
9
class BaseError(Exception):
    """The base error all wom errors inherit from."""

    __slots__ = ()

UnwrapError

Bases: BaseError

Raised when calling unwrap or unwrap_err incorrectly.

message: The error message.

Source code in unkey/errors.py
class UnwrapError(BaseError):
    """Raised when calling unwrap or unwrap_err incorrectly.

    message: The error message.
    """

    __slots__ = ()

    def __init__(self, message: str) -> None:
        super().__init__(f"Unwrap failed: {message}")