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