aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Twisted/py2/twisted/cred/error.py
diff options
context:
space:
mode:
authorshmel1k <shmel1k@ydb.tech>2023-11-26 18:16:14 +0300
committershmel1k <shmel1k@ydb.tech>2023-11-26 18:43:30 +0300
commitb8cf9e88f4c5c64d9406af533d8948deb050d695 (patch)
tree218eb61fb3c3b96ec08b4d8cdfef383104a87d63 /contrib/python/Twisted/py2/twisted/cred/error.py
parent523f645a83a0ec97a0332dbc3863bb354c92a328 (diff)
downloadydb-b8cf9e88f4c5c64d9406af533d8948deb050d695.tar.gz
add kikimr_configure
Diffstat (limited to 'contrib/python/Twisted/py2/twisted/cred/error.py')
-rw-r--r--contrib/python/Twisted/py2/twisted/cred/error.py45
1 files changed, 45 insertions, 0 deletions
diff --git a/contrib/python/Twisted/py2/twisted/cred/error.py b/contrib/python/Twisted/py2/twisted/cred/error.py
new file mode 100644
index 0000000000..efd3ec3426
--- /dev/null
+++ b/contrib/python/Twisted/py2/twisted/cred/error.py
@@ -0,0 +1,45 @@
+# Copyright (c) Twisted Matrix Laboratories.
+# See LICENSE for details.
+
+"""
+Cred errors.
+"""
+
+from __future__ import division, absolute_import
+
+
+class Unauthorized(Exception):
+ """Standard unauthorized error."""
+
+
+
+class LoginFailed(Exception):
+ """
+ The user's request to log in failed for some reason.
+ """
+
+
+
+class UnauthorizedLogin(LoginFailed, Unauthorized):
+ """The user was not authorized to log in.
+ """
+
+
+
+class UnhandledCredentials(LoginFailed):
+ """A type of credentials were passed in with no knowledge of how to check
+ them. This is a server configuration error - it means that a protocol was
+ connected to a Portal without a CredentialChecker that can check all of its
+ potential authentication strategies.
+ """
+
+
+
+class LoginDenied(LoginFailed):
+ """
+ The realm rejected this login for some reason.
+
+ Examples of reasons this might be raised include an avatar logging in
+ too frequently, a quota having been fully used, or the overall server
+ load being too high.
+ """