~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/error.py

  • Committer: William Grant
  • Date: 2012-01-25 06:19:56 UTC
  • Revision ID: william.grant@canonical.com-20120125061956-4tltjt6a4xf5yufj
Fix test.

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."""