errors — Exception classes¶
Exception classes mapping to XMPP stream errors¶
Exception classes mapping to XMPP stanza errors¶
- class aioxmpp.errors.XMPPError(condition, text=None, application_defined_condition=None)[source]¶
Relevant subclasses:
aioxmpp.XMPPAuthError(condition[, text, ...]) aioxmpp.XMPPModifyError(condition[, text, ...]) aioxmpp.XMPPCancelError(condition[, text, ...]) aioxmpp.XMPPContinueError(condition[, text, ...]) aioxmpp.XMPPWaitError(condition[, text, ...])
- class aioxmpp.XMPPAuthError(condition, text=None, application_defined_condition=None)¶
- class aioxmpp.XMPPModifyError(condition, text=None, application_defined_condition=None)¶
- class aioxmpp.XMPPCancelError(condition, text=None, application_defined_condition=None)¶
- class aioxmpp.XMPPWaitError(condition, text=None, application_defined_condition=None)¶
- class aioxmpp.XMPPContinueError(condition, text=None, application_defined_condition=None)¶
- class aioxmpp.errors.ErroneousStanza(partial_obj)[source]¶
This exception is thrown into listeners for IQ responses by aioxmpp.stream.StanzaStream if a response for an IQ was received, but could not be decoded (due to malformed or unsupported payload).
Stream negotiation exceptions¶
- class aioxmpp.errors.SecurityNegotiationFailure(xmpp_error, kind='Security negotiation failure', text=None)[source]¶
I18N exceptions¶
- class aioxmpp.errors.UserError(localizable_string, *args, **kwargs)[source]¶
An exception subclass, which should be used as a mix-in.
It is intended to be used for exceptions which may be user-facing, such as connection errors, value validation issues and the like.
localizable_string must be a i18n.LocalizableString instance. The args and kwargs will be passed to LocalizableString.localize when either str() is called on the UserError or localize() is called.
The str() is created using the default LocalizingFormatter and a gettext.NullTranslations instance. The point in time at which the default localizing formatter is created is unspecified.
- class aioxmpp.errors.UserValueError(localizable_string, *args, **kwargs)[source]¶
This is a ValueError with UserError mixed in.