errors – Mongotor errors

class mongotor.errors.Error

Base class for all mongotor exceptions.

class mongotor.errors.InterfaceError

Raised when a connection to the database cannot be made or is lost.

class mongotor.errors.TooManyConnections

Raised when a pool is busy.

class mongotor.errors.InvalidOperationError

Raised when a client attempts to perform an invalid operation.

class mongotor.errors.IntegrityError(msg, code=None)

Raised when a safe insert or update fails due to a duplicate key error.

Previous topic

orm – Map a mongo collection into a python class

This Page