~didrocks/unity/altf10

70 by Curtis Hovey
Clean up python-oddities.
1
__metaclass__ = type
44 by Curtis Hovey
Move errors to their own module.
2
__all__ = [
57 by Curtis Hovey
Added a rudimentary put_archive.
3
    'ArchiveIdExists',
4
    'ArchiveIdNotFound',
44 by Curtis Hovey
Move errors to their own module.
5
    'MessageIdNotFound',
6
    'UnparsableDateRange',
7
    'UnsupportedDisplayType',
8
    'UnsupportedOrder',
9
    ]
10
11
57 by Curtis Hovey
Added a rudimentary put_archive.
12
class ArchiveIdExists(Exception):
13
    """An archive matching the archive_id was found in the store."""
14
70 by Curtis Hovey
Clean up python-oddities.
15
47 by Curtis Hovey
Raise ArchiveIdNotFound if the client puts a message into an unknown archive.
16
class ArchiveIdNotFound(Exception):
17
    """No archive matching the archive_id was found in the store."""
18
70 by Curtis Hovey
Clean up python-oddities.
19
44 by Curtis Hovey
Move errors to their own module.
20
class MessageIdNotFound(Exception):
21
    """No message matching the message_id was found in the archive."""
22
23
24
class UnparsableDateRange(Exception):
25
    """The date_range was not in the format of 2012-01-01..2012-01-31."""
26
27
28
class UnsupportedDisplayType(Exception):
29
    """Raised when an Unsupported display_type is requested."""
30
31
32
class UnsupportedOrder(Exception):
33
    """Raised when an Unsupported order is requested."""