~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/error.py

  • Committer: Curtis Hovey
  • Date: 2012-03-17 21:02:32 UTC
  • Revision ID: curtis.hovey@canonical.com-20120317210232-0cw98mbpn9356que
No need to uppercase the reason.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
__all__ = [
 
2
    'ArchiveIdExists',
 
3
    'ArchiveIdNotFound',
 
4
    'MessageIdNotFound',
 
5
    'UnparsableDateRange',
 
6
    'UnsupportedDisplayType',
 
7
    'UnsupportedOrder',
 
8
    ]
 
9
 
 
10
 
 
11
class ArchiveIdExists(Exception):
 
12
    """An archive matching the archive_id was found in the store."""
 
13
 
 
14
class ArchiveIdNotFound(Exception):
 
15
    """No archive matching the archive_id was found in the store."""
 
16
 
 
17
class MessageIdNotFound(Exception):
 
18
    """No message matching the message_id was found in the archive."""
 
19
 
 
20
 
 
21
class UnparsableDateRange(Exception):
 
22
    """The date_range was not in the format of 2012-01-01..2012-01-31."""
 
23
 
 
24
 
 
25
class UnsupportedDisplayType(Exception):
 
26
    """Raised when an Unsupported display_type is requested."""
 
27
 
 
28
 
 
29
class UnsupportedOrder(Exception):
 
30
    """Raised when an Unsupported order is requested."""