summaryrefslogtreecommitdiff
path: root/sleekxmpp/exceptions.py
AgeCommit message (Collapse)Author
2013-01-24Ensure XMPPError.text is a string.Lance Stout
2012-06-19PEP8 formatting updates.Lance Stout
2011-12-05More doc updatesLance Stout
2011-08-19Make Iq exceptions more discoverable and simpler to use.Lance Stout
IqError and IqTimeout now extend XMPPError, so if you don't care about the difference, you can use: try: self.do_something_with_iqs() except XMPPError: # Error? Timeout? I don't care! pass If you do need to distinguish between timeouts and error replies, you can still continue to use: try: self.do_somethin_with_iqs() except IqError as err: pass except IqTimeout: pass If you don't catch any Iq errors and you're processing a stanza then an error response will be sent, just like normal if you raise XMPPError or any other exception, except that the error messages will be generic to prevent leaking too much information.
2011-08-18PEP8 editsLance Stout
2011-06-01IqTimeout now references the original sent stanza.Lance Stout
A little extra bit of docs for IqError.
2011-06-01Begin experimental use of exceptions.Lance Stout
Provides IqTimeout and IqError which are raised when an Iq response does not arrive in time, or it arrives with type='error'.
2011-02-11XMPPError exceptions can keep a stanza's contents.Lance Stout
This allows exceptions to include the original content of a stanza in the error response by including the parameter clear=False when raising the exception.
2010-10-25Made exceptions work.sleek-1.0-Beta21.0-Beta2Lance Stout
Raising an XMPPError exception from an event handler now works, even if from a threaded handler. Added stream tests to verify. We should start using XMPPError, it really makes things simple!
2010-10-06More PEP8 compliance cleanups.Lance Stout
Cleaned up the atom entry stanza.
2010-08-11Updated sleekxmpp.exceptions with PEP8 style and docs.Lance Stout
2010-07-20Updated license notices to use the correct MIT format. Also corrected ↵Lance Stout
references to nonexistant license.txt to LICENSE.
2010-03-26changed license to MITsleek-0.9RC10.9RC1Nathan Fritz
2010-01-05* major stanza improvementsNathan Fritz
* raise XMPPError in handler to reply with error stanza * started work on pubsub stanzas