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”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “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”:
Results provided by Lunr.js
class StanzaError(BaseError): (source)
StanzaError(condition, type, text, textLang, appCondition)
Stanza Error exception.
Refer to RFC 3920, section 9.3, for the allowed values for condition and type.
||Get XML representation from self.|
||Construct error response stanza.|
||A numeric identifier for the error condition for backwards compatibility with pre-XMPP Jabber implementations.|
||The stanza error type. Gives a suggestion to the recipient of the error on how to proceed.|
||The namespace of the error element generated by getElement.|
||Application specific condition element, supplementing the error condition in condition.|
||The error condition. The valid values are defined by subclasses of
||Optional text message to supplement the condition or application specific condition.|
||Identifier of the language used for the message in text. Values are as described in RFC 3066.|
Get XML representation from self.
Overrides the base
BaseError.getElement to make sure the returned element has a type attribute and optionally a legacy code attribute.
Construct error response stanza.
The stanza is transformed into an error response stanza by swapping the to and from addresses and inserting an error element.
|stanza:||the stanza to respond to|
This creates a shallow copy of the list of child elements of the stanza. The child elements themselves are not copied themselves, and references to their parent element will still point to the original stanza element.
The serialization of an element does not use the reference to its parent, so the typical use case of immediately sending out the constructed error response is not affected.
A numeric identifier for the error condition for backwards compatibility with pre-XMPP Jabber implementations.