~unity-2d-team/unity-2d/Shell-MultiMonitor

« back to all changes in this revision

Viewing changes to grackle/error.py

  • Committer: William Grant
  • Date: 2012-04-20 02:20:58 UTC
  • mfrom: (6.1.70 trunk)
  • Revision ID: william.grant@canonical.com-20120420022058-3nkracsmlg7akydu
Merge trunk.

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