slidge.util.error
#
Module Contents#
Functions#
Attributes#
- slidge.util.error.reply(self, body=None, clear=True)[source]#
Overrides slixmpp’s Message.reply(), since it strips to sender’s resource for mtype=groupchat, and we do not want that, because when we raise an XMPPError, we actually want to preserve the resource. (this is called in RootStanza.exception() to handle XMPPErrors)
- exception slidge.util.error.XMPPError(condition='undefined-condition', text='', by=None, etype=None)[source]#
Bases:
slixmpp.exceptions.XMPPError
Improvements over Base: include by, automatically determine appropriate etype if not given
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
condition (Conditions) –
by (Optional[slixmpp.types.JidStr]) –
etype (Optional[ErrorTypes]) –