# HG changeset patch # User Goffi # Date 1452270272 -3600 # Node ID 514ade8662618a988076616549e83af610bcfb09 # Parent 0158ab00afeaa11167e81c2b4db1deb4caed7304 tmp (wokkel.rsm): RSMError now inherit from StanzaError, so they are correctly handled by services diff -r 0158ab00afea -r 514ade866261 src/tmp/wokkel/rsm.py --- a/src/tmp/wokkel/rsm.py Thu Jan 07 23:03:15 2016 +0100 +++ b/src/tmp/wokkel/rsm.py Fri Jan 08 17:24:32 2016 +0100 @@ -25,6 +25,7 @@ """ from twisted.words.xish import domish +from twisted.words.protocols.jabber import error import pubsub import copy @@ -33,10 +34,12 @@ 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):