OLD | NEW |
| (Empty) |
1 # Copyright (c) 2001-2004 Twisted Matrix Laboratories. | |
2 # See LICENSE for details. | |
3 | |
4 # | |
5 # Paul, why didn't you check in an error.py? | |
6 | |
7 """ | |
8 An error to represent bad things happening in Conch. | |
9 | |
10 Maintainer: U{Paul Swartz<mailto:z3p@twistedmatrix.com>} | |
11 """ | |
12 | |
13 class ConchError(Exception): | |
14 def __init__(self, value, data = None): | |
15 Exception.__init__(self, value, data) | |
16 self.value = value | |
17 self.data = data | |
18 | |
19 class NotEnoughAuthentication(Exception): | |
20 """This is thrown if the authentication is valid, but is not enough to | |
21 successfully verify the user. i.e. don't retry this type of | |
22 authentication, try another one. | |
23 """ | |
24 | |
25 class ValidPublicKey(Exception): | |
26 """This is thrown during the authentication process if the public key | |
27 is valid for the user. | |
28 """ | |
29 | |
30 class IgnoreAuthentication(Exception): | |
31 """This is thrown to let the UserAuthServer know it doesn't need to handle | |
32 the authentication anymore. | |
33 """ | |
OLD | NEW |