diff options
Diffstat (limited to 'alot/db/errors.py')
-rw-r--r-- | alot/db/errors.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/alot/db/errors.py b/alot/db/errors.py new file mode 100644 index 00000000..17ef219c --- /dev/null +++ b/alot/db/errors.py @@ -0,0 +1,19 @@ +class DatabaseError(Exception): + pass + + +class DatabaseROError(DatabaseError): + """cannot write to read-only database""" + pass + + +class DatabaseLockedError(DatabaseError): + """cannot write to locked index""" + pass + + +class NonexistantObjectError(DatabaseError): + """requested thread or message does not exist in the index""" + pass + + |