Skip to content

Exceptions

FunctorValueError

Bases: Exception

FunctorValueError is raised when a Functor does not contain a value.

Source code in funclift/exceptions.py
1
2
3
4
5
6
7
8
class FunctorValueError(Exception):
    """FunctorValueError is raised when a Functor does not contain a value."""

    __slots__ = ('functor',)

    def __init__(self, functor) -> None:
        super().__init__()
        self.functor = functor