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