INNER CODE UNIT · Python

__init__

mongomock/mongomock · mongomock/__init__.py:17

        def __init__(self, message, code=None, details=None):
            super().__init__()
            self._message = message
            self._code = code
            self._details = details

        code = property(lambda self: self._code)
        details = property(lambda self: self._details)

        def __str__(self):
            return self._message


try:
    from pymongo.errors import WriteError
except ImportError:

    class WriteError(OperationFailure):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…