diff 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
line wrap: on
line diff
--- a/sat_pubsub/error.py	Mon Nov 18 20:49:38 2019 +0100
+++ b/sat_pubsub/error.py	Sat Dec 28 19:56:47 2019 +0100
@@ -148,5 +148,12 @@
     This node does not support publishing.
     """
 
+
 class BadAccessTypeError(Error):
     pass
+
+
+class ConstraintFailed(Error):
+    """
+    A requirement is not fulfilled
+    """