~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/error.py

  • Committer: Aaron Bentley
  • Date: 2012-01-11 14:04:41 UTC
  • Revision ID: aaron@canonical.com-20120111140441-l4sanxq1en07oblx
Test filtering by message-id.

Show diffs side-by-side

added added

removed removed

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