PHP 8.5.2
Preview: error.py Size: 978 B
/lib/python3/dist-packages/twisted/cred/error.py

# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

"""
Cred errors.
"""


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.
    """

Directory Contents

Dirs: 2 × Files: 7

Name Size Perms Modified Actions
test DIR
- drwxr-xr-x 2026-01-08 12:56:22
Edit Download
- drwxr-xr-x 2026-01-08 12:56:23
Edit Download
11.20 KB lrw-r--r-- 2024-08-27 10:30:39
Edit Download
16.15 KB lrw-r--r-- 2024-08-27 10:30:39
Edit Download
978 B lrw-r--r-- 2024-08-27 10:30:39
Edit Download
6.45 KB lrw-r--r-- 2024-08-27 10:30:39
Edit Download
8.14 KB lrw-r--r-- 2024-08-27 10:30:39
Edit Download
3.96 KB lrw-r--r-- 2024-08-27 10:30:39
Edit Download
189 B lrw-r--r-- 2024-08-27 10:30:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).