diff options
author | Nathan Fritz <fritzy@netflint.net> | 2010-01-05 21:56:48 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2010-01-05 21:56:48 +0000 |
commit | 093644ffbd6708121150c92359bce60408f924bb (patch) | |
tree | a7d6da57ff76a8e54b1ec3703aeffeed82f34fa1 /sleekxmpp/exceptions.py | |
parent | 805afa4bc1f44598d786fddc92c5129c62464227 (diff) | |
download | slixmpp-093644ffbd6708121150c92359bce60408f924bb.tar.gz slixmpp-093644ffbd6708121150c92359bce60408f924bb.tar.bz2 slixmpp-093644ffbd6708121150c92359bce60408f924bb.tar.xz slixmpp-093644ffbd6708121150c92359bce60408f924bb.zip |
* major stanza improvements
* raise XMPPError in handler to reply with error stanza
* started work on pubsub stanzas
Diffstat (limited to 'sleekxmpp/exceptions.py')
-rw-r--r-- | sleekxmpp/exceptions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sleekxmpp/exceptions.py b/sleekxmpp/exceptions.py new file mode 100644 index 00000000..9df51700 --- /dev/null +++ b/sleekxmpp/exceptions.py @@ -0,0 +1,8 @@ +class XMPPError(Exception): + def __init__(self, condition='undefined-condition', text=None, etype=None, extension=None, extension_ns=None, extension_args=None): + self.condition = condition + self.text = text + self.etype = etype + self.extension = extension + self.extension_ns = extension_ns + self.extension_args = extension_args |