Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright (c) Twisted Matrix Laboratories.
  2. # See LICENSE for details.
  3. """
  4. Cred errors.
  5. """
  6. class Unauthorized(Exception):
  7. """Standard unauthorized error."""
  8. class LoginFailed(Exception):
  9. """
  10. The user's request to log in failed for some reason.
  11. """
  12. class UnauthorizedLogin(LoginFailed, Unauthorized):
  13. """The user was not authorized to log in."""
  14. class UnhandledCredentials(LoginFailed):
  15. """A type of credentials were passed in with no knowledge of how to check
  16. them. This is a server configuration error - it means that a protocol was
  17. connected to a Portal without a CredentialChecker that can check all of its
  18. potential authentication strategies.
  19. """
  20. class LoginDenied(LoginFailed):
  21. """
  22. The realm rejected this login for some reason.
  23. Examples of reasons this might be raised include an avatar logging in
  24. too frequently, a quota having been fully used, or the overall server
  25. load being too high.
  26. """