comparison sat_pubsub/error.py @ 419:794593086517

backend: publish-options implementation: - removed some old code - new ConstraintFailed exception - publishing options implementation, following XEP-0060 ยง7.1.5 - first use of async/await syntax, used to simplify "publish" method
author Goffi <goffi@goffi.org>
date Sat, 28 Dec 2019 19:56:47 +0100
parents ccb2a22ea0fc
children af73d57829ed
comparison
equal deleted inserted replaced
418:89736353f6be 419:794593086517
146 class NoPublishing(Error): 146 class NoPublishing(Error):
147 """ 147 """
148 This node does not support publishing. 148 This node does not support publishing.
149 """ 149 """
150 150
151
151 class BadAccessTypeError(Error): 152 class BadAccessTypeError(Error):
152 pass 153 pass
154
155
156 class ConstraintFailed(Error):
157 """
158 A requirement is not fulfilled
159 """