~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
__all__ = [
 
2
    'MessageIdNotFound',
 
3
    'UnparsableDateRange',
 
4
    'UnsupportedDisplayType',
 
5
    'UnsupportedOrder',
 
6
    ]
 
7
 
 
8
 
 
9
class MessageIdNotFound(Exception):
 
10
    """No message matching the message_id was found in the archive."""
 
11
 
 
12
 
 
13
class UnparsableDateRange(Exception):
 
14
    """The date_range was not in the format of 2012-01-01..2012-01-31."""
 
15
 
 
16
 
 
17
class UnsupportedDisplayType(Exception):
 
18
    """Raised when an Unsupported display_type is requested."""
 
19
 
 
20
 
 
21
class UnsupportedOrder(Exception):
 
22
    """Raised when an Unsupported order is requested."""