~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/error.py

  • Committer: Curtis Hovey
  • Date: 2012-03-16 19:37:09 UTC
  • Revision ID: curtis.hovey@canonical.com-20120316193709-oa33ido3h6hpo0bu
Factor-out message methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
__all__ = [
 
2
    'MessageIdNotFound',
 
3
    'UnparsableDateRange',
 
4
    'UnsupportedDisplayType',
 
5
    'UnsupportedOrder',
 
6
    ]
 
7
 
 
8
 
 
9
class ArchiveIdNotFound(Exception):
 
10
    """No archive matching the archive_id was found in the store."""
 
11
 
 
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."""