~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/error.py

  • Committer: Curtis Hovey
  • Date: 2012-02-24 21:43:12 UTC
  • Revision ID: curtis.hovey@canonical.com-20120224214312-zlji369uv0l9v75m
Move errors to their own module.
Remove duplicate definiton of SUPPORTED_DISPLAY_TYPES.

Show diffs side-by-side

added added

removed removed

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