summaryrefslogtreecommitdiff
path: root/alot/db/errors.py
blob: d5fd9f9ab502595342f7073c41a24fe2ec68311b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (C) 2011-2012  Patrick Totzke <patricktotzke@gmail.com>
# This file is released under the GNU GPL, version 3 or a later revision.
# For further details see the COPYING file


class DatabaseError(Exception):
    pass


class DatabaseROError(DatabaseError):

    """cannot write to read-only database"""
    pass

class QueryError(DatabaseError):
    """malformed query"""
    pass


class NonexistantObjectError(DatabaseError):

    """requested thread or message does not exist in the index"""
    pass