summaryrefslogtreecommitdiff
path: root/sleekxmpp/exceptions.py
diff options
context:
space:
mode:
authorNathan Fritz <fritzy@netflint.net>2011-08-12 16:35:15 -0700
committerNathan Fritz <fritzy@netflint.net>2011-08-12 16:35:15 -0700
commitbd8c110f00a41917839a0578de68b80c39ee6e16 (patch)
treecc44410ba6e6efe7cfcf1decc8f1b1d8b2692aa7 /sleekxmpp/exceptions.py
parent0050c5112428939346397a4d2edfeb313c0fd497 (diff)
parentd7fe724145c2e01d1028dab773fb49414c6856dd (diff)
downloadslixmpp-bd8c110f00a41917839a0578de68b80c39ee6e16.tar.gz
slixmpp-bd8c110f00a41917839a0578de68b80c39ee6e16.tar.bz2
slixmpp-bd8c110f00a41917839a0578de68b80c39ee6e16.tar.xz
slixmpp-bd8c110f00a41917839a0578de68b80c39ee6e16.zip
Merge branch 'exceptions' into develop
Diffstat (limited to 'sleekxmpp/exceptions.py')
-rw-r--r--sleekxmpp/exceptions.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/sleekxmpp/exceptions.py b/sleekxmpp/exceptions.py
index 4727f0c6..8329a3c3 100644
--- a/sleekxmpp/exceptions.py
+++ b/sleekxmpp/exceptions.py
@@ -52,3 +52,24 @@ class XMPPError(Exception):
self.extension = extension
self.extension_ns = extension_ns
self.extension_args = extension_args
+
+
+class IqTimeout(Exception):
+
+ """
+ An exception which indicates that an IQ request response has not been
+ received within the alloted time window.
+ """
+
+ def __init__(self, iq):
+ self.iq = iq
+
+class IqError(Exception):
+
+ """
+ An exception raised when an Iq stanza of type 'error' is received
+ after making a blocking send call.
+ """
+
+ def __init__(self, iq):
+ self.iq = iq