Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# Source code for gevent.monkey._errors

    # -*- coding: utf-8 -*-
    """
    Exception classes and errors that this package may raise.

    """
    import logging

    logger = logging.getLogger(__name__)

    class _BadImplements(AttributeError):
        """
        Raised when ``__implements__`` is incorrect.
        """

        def __init__(self, module):
            AttributeError.__init__(
                self,
                "Module %r has a bad or missing value for __implements__" % (module,)
            )

    class MonkeyPatchWarning(RuntimeWarning):
        """
        The type of warnings we issue.

        .. versionadded:: 1.3a2
        """