tmp (wokkel.rsm): RSMError now inherit from StanzaError, so they are correctly handled by services
This commit is contained in:
parent
ea84a344db
commit
19d55f7c8a
1 changed files with 4 additions and 1 deletions
|
|
@ -25,6 +25,7 @@ U{XEP-0059<http://xmpp.org/extensions/xep-0059.html>}.
|
|||
"""
|
||||
|
||||
from twisted.words.xish import domish
|
||||
from twisted.words.protocols.jabber import error
|
||||
|
||||
import pubsub
|
||||
import copy
|
||||
|
|
@ -33,10 +34,12 @@ import copy
|
|||
NS_RSM = 'http://jabber.org/protocol/rsm'
|
||||
|
||||
|
||||
class RSMError(Exception):
|
||||
class RSMError(error.StanzaError):
|
||||
"""
|
||||
RSM error.
|
||||
"""
|
||||
def __init__(self, text=None):
|
||||
error.StanzaError.__init__(self, 'bad-request', text=text)
|
||||
|
||||
|
||||
class RSMNotFoundError(Exception):
|
||||
|
|
|
|||
Loading…
Reference in a new issue