diff idavoll/error.py @ 171:bc269696ef42

Reply with the correct error condition on subscription when not subscribed. Author: ralphm. Fixes #7.
author Ralph Meijer <ralphm@ik.nu>
date Thu, 03 Jan 2008 13:10:25 +0000
parents ef22e4150caa
children 569e4dac9bc3
line wrap: on
line diff
--- a/idavoll/error.py	Tue Oct 09 10:20:25 2007 +0000
+++ b/idavoll/error.py	Thu Jan 03 13:10:25 2008 +0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2003-2007 Ralph Meijer
+# Copyright (c) 2003-2008 Ralph Meijer
 # See LICENSE for details.
 
 class Error(Exception):
@@ -13,8 +13,10 @@
 class NodeExists(Error):
     pass
 
-class SubscriptionNotFound(Error):
-    pass
+class NotSubscribed(Error):
+    """
+    Entity is not subscribed to this node.
+    """
 
 class SubscriptionExists(Error):
     pass
@@ -31,9 +33,6 @@
 class NoInstantNodes(Error):
     pass
 
-class NotSubscribed(Error):
-    pass
-
 class InvalidConfigurationOption(Error):
     msg = 'Invalid configuration option'