Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nbxmpp/errors.py')
-rw-r--r--nbxmpp/errors.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/nbxmpp/errors.py b/nbxmpp/errors.py
index d6131e3..c926c06 100644
--- a/nbxmpp/errors.py
+++ b/nbxmpp/errors.py
@@ -135,3 +135,21 @@ class CancelledError(BaseError):
def __init__(self):
BaseError.__init__(self, is_fatal=True)
self.text = 'Task has been cancelled'
+
+
+class RegisterStanzaError(StanzaError):
+ def __init__(self, stanza, data):
+ StanzaError.__init__(self, stanza)
+ self._data = data
+
+ def get_data(self):
+ return self._data
+
+
+class ChangePasswordStanzaError(StanzaError):
+ def __init__(self, stanza, form):
+ StanzaError.__init__(self, stanza)
+ self._form = form
+
+ def get_form(self):
+ return self._form