Go to the latest version of this document.
search in docstrings

Search bar offers the following options:

- Term presence. The below example searches for documents that must contain “foo”, might contain “bar” and must not contain “baz”: `+foo bar -baz`
- Wildcards. The below example searches for documents with words beginning with “foo”: `foo*`
- Search in specific fields. The following search matches all objects in "twisted.mail" that matches “search”: `+qname:twisted.mail.* +search`

  Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.

- Fuzzy matches. The following search matches all documents that have a word within 1 edit distance of “foo”: `foo~1`

Results provided by Lunr.js

# ``twisted`.`web`.`error`.`RedirectWithNoLocation``

exception documentation

`class RedirectWithNoLocation(Error): (source)`

View In Hierarchy

Exception passed to `ResponseFailed` if we got a redirect without a `Location` header field.

Present Since
11.1

Method | `__init__` | Initializes a page redirect exception when no location is given.
Instance Variable | `message` | Undocumented
Instance Variable | `uri` | The URI which failed to give a proper location header field.

Inherited from `Error`:

Method | `__str__` | Undocumented
Instance Variable | `response` | A complete HTML document for an error page.
Instance Variable | `status` | Refers to an HTTP status code, for example `http.NOT_FOUND`.

def __init__(self, code, message, uri): (source)
overrides `twisted.web.error.Error.__init__`

Initializes a page redirect exception when no location is given.

Parameters
code:`bytes` | Refers to an HTTP status code, for example `http.NOT_FOUND`. If no `message` is given, `code` is mapped to a descriptive string that is used instead.
message:`bytes` | A short error message.
uri:`bytes` | The URI which failed to give a proper location header field.

message = (source)
overrides `twisted.web.error.Error.message`

Undocumented

uri: `bytes` = (source)

The URI which failed to give a proper location header field.