pyjabber.stanzas.error package

Submodules

pyjabber.stanzas.error.StanzaError module

pyjabber.stanzas.error.StanzaError.bad_request()[source]
Return type:

bytes

<error type=’modify’>

<bad-request xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’/>

</error>

pyjabber.stanzas.error.StanzaError.conflict_error(id)[source]
Return type:

bytes

pyjabber.stanzas.error.StanzaError.feature_not_implemented(feature, namespace)[source]
Return type:

bytes

<error type=’cancel’>
<feature-not-implemented

xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’/>

<unsupported “

f”xmlns=’<<namespace>>’ feature=’<<feature>>’/>

</error>

pyjabber.stanzas.error.StanzaError.internal_server_error()[source]
Return type:

bytes

<stream:error>
<internal-server-error

xmlns=’urn:ietf:params:xml:ns:xmpp-streams’/>

</stream:error> </stream:stream>

pyjabber.stanzas.error.StanzaError.invalid_xml()[source]
Return type:

bytes

<stream:error>
<invalid-xml

xmlns=’urn:ietf:params:xml:ns:xmpp-streams’/>

</stream:error> </stream:stream>

pyjabber.stanzas.error.StanzaError.item_not_found()[source]
Return type:

bytes

<error type=’cancel’>

<item-not-found xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’/>

</error>

pyjabber.stanzas.error.StanzaError.not_acceptable(text=None)[source]
Return type:

bytes

<error type=’modify’>
<not-acceptable xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’>

[OPTIONAL descriptive text] <text>

{ERROR MESSAGE}

</text>

</not-acceptable>

</error>

pyjabber.stanzas.error.StanzaError.not_authorized()[source]
Return type:

bytes

<failure xmlns=’urn:ietf:params:xml:ns:xmpp-sasl’>

<not-authorized/>

</failure>

pyjabber.stanzas.error.StanzaError.service_unavaliable()[source]
<error type=’cancel’>
<service-unavailable

xmlns=’urn:ietf:params:xml:ns:xmpp-stanzas’/>

</error>

Module contents