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