about summary refs log tree commit diff
path: root/.venv/lib/python3.12/site-packages/pydash/exceptions.py
blob: e4d11ec9bc4e3ec7b203355c42b615d6791a35f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Exception classes.

.. versionadded:: 1.0.0
"""

from __future__ import annotations


__all__ = ("InvalidMethod",)


# NOTE: This needs to subclass AttributeError due to compatibility with typing.Protocol and
#  runtime_checkable. See https://github.com/dgilland/pydash/issues/165
class InvalidMethod(AttributeError):
    """
    Raised when an invalid pydash method is invoked through :func:`pydash.chaining.chain`.

    .. versionadded:: 1.0.0
    """

    pass