~cbehrens/nova/lp844160-build-works-with-zones

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/words/ewords.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- test-case-name: twisted.words.test -*-
 
2
# Copyright (c) 2001-2005 Twisted Matrix Laboratories.
 
3
# See LICENSE for details.
 
4
 
 
5
"""Exception definitions for Words
 
6
"""
 
7
 
 
8
class WordsError(Exception):
 
9
    def __str__(self):
 
10
        return self.__class__.__name__ + ': ' + Exception.__str__(self)
 
11
 
 
12
class NoSuchUser(WordsError):
 
13
    pass
 
14
 
 
15
 
 
16
class DuplicateUser(WordsError):
 
17
    pass
 
18
 
 
19
 
 
20
class NoSuchGroup(WordsError):
 
21
    pass
 
22
 
 
23
 
 
24
class DuplicateGroup(WordsError):
 
25
    pass
 
26
 
 
27
 
 
28
class AlreadyLoggedIn(WordsError):
 
29
    pass
 
30
 
 
31
__all__ = [
 
32
    'WordsError', 'NoSuchUser', 'DuplicateUser',
 
33
    'NoSuchGroup', 'DuplicateGroup', 'AlreadyLoggedIn',
 
34
    ]