| OLD | NEW |
| (Empty) |
| 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 ] | |
| OLD | NEW |