summaryrefslogtreecommitdiff
path: root/sleekxmpp/jid.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-07-23 02:56:53 -0700
committerLance Stout <lancestout@gmail.com>2012-07-24 01:43:20 -0700
commit613323b5fb71dea6af7d2cdacfbadffc77a67ad9 (patch)
tree230fe30f24104c0c61a7c6644d45be25a249e6bf /sleekxmpp/jid.py
parent6c4b01db8a2a1acc3f7cb455edf2f145bdcbbf28 (diff)
downloadslixmpp-613323b5fb71dea6af7d2cdacfbadffc77a67ad9.tar.gz
slixmpp-613323b5fb71dea6af7d2cdacfbadffc77a67ad9.tar.bz2
slixmpp-613323b5fb71dea6af7d2cdacfbadffc77a67ad9.tar.xz
slixmpp-613323b5fb71dea6af7d2cdacfbadffc77a67ad9.zip
Finish docstrings for jid.py
Diffstat (limited to 'sleekxmpp/jid.py')
-rw-r--r--sleekxmpp/jid.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/sleekxmpp/jid.py b/sleekxmpp/jid.py
index 2adc4372..7597885a 100644
--- a/sleekxmpp/jid.py
+++ b/sleekxmpp/jid.py
@@ -296,8 +296,13 @@ def _format_jid(local=None, domain=None, resource=None):
class InvalidJID(ValueError):
- pass
+ """
+ Raised when attempting to create a JID that does not pass validation.
+ It can also be raised if modifying an existing JID in such a way as
+ to make it invalid, such trying to remove the domain from an existing
+ full JID while the local and resource portions still exist.
+ """
# pylint: disable=R0903
class UnescapedJID(object):