File: errors.py

package info (click to toggle)
python-aioredlock 0.7.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 184 kB
  • sloc: python: 608; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 417 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class AioredlockError(Exception):
    """
    Base exception for aioredlock
    """


class LockError(AioredlockError):
    """
    Error in acquiring or releasing the lock
    """


class LockAcquiringError(LockError):
    """
    Error in acquiring the lock during normal operation
    """


class LockRuntimeError(LockError):
    """
    Error in acquiring or releasing the lock due to an unexpected event
    """