|
Revision 30752, 1.0 KB
(checked in by exarkun, 15 months ago)
|
|
Rewrite the copyright headers to exclude date information.
Author: exarkun
Reviewer: glyph
Fixes: #4857
To avoid the need to perpetually update copyright dates in each file in Twisted,
remove the dates from most files and just leave them in the LICENSE file.
As a side effect, some files also have had a trailing newline added where it was
missing before.
|
| Line | |
|---|
| 1 | # Copyright (c) Twisted Matrix Laboratories. |
|---|
| 2 | # See LICENSE for details. |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | """Cred errors.""" |
|---|
| 6 | |
|---|
| 7 | class Unauthorized(Exception): |
|---|
| 8 | """Standard unauthorized error.""" |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | class LoginFailed(Exception): |
|---|
| 13 | """ |
|---|
| 14 | The user's request to log in failed for some reason. |
|---|
| 15 | """ |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | class UnauthorizedLogin(LoginFailed, Unauthorized): |
|---|
| 20 | """The user was not authorized to log in. |
|---|
| 21 | """ |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | class UnhandledCredentials(LoginFailed): |
|---|
| 26 | """A type of credentials were passed in with no knowledge of how to check |
|---|
| 27 | them. This is a server configuration error - it means that a protocol was |
|---|
| 28 | connected to a Portal without a CredentialChecker that can check all of its |
|---|
| 29 | potential authentication strategies. |
|---|
| 30 | """ |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | class LoginDenied(LoginFailed): |
|---|
| 35 | """ |
|---|
| 36 | The realm rejected this login for some reason. |
|---|
| 37 | |
|---|
| 38 | Examples of reasons this might be raised include an avatar logging in |
|---|
| 39 | too frequently, a quota having been fully used, or the overall server |
|---|
| 40 | load being too high. |
|---|
| 41 | """ |
|---|