Source code for portalocker.exceptions

[docs]class BaseLockException(Exception): # Error codes: LOCK_FAILED = 1 def __init__(self, *args, **kwargs): self.fh = kwargs.pop('fh', None) Exception.__init__(self, *args, **kwargs)
[docs]class LockException(BaseLockException): pass
[docs]class AlreadyLocked(BaseLockException): pass
[docs]class FileToLarge(BaseLockException): pass