Mercurial > libervia-pubsub
view idavoll/error.py @ 224:55b45c7dccb4
Upon gateway subscription to the root node, don't retrieve items.
The root node is always a collection node, which cannot have items by itself.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Sun, 13 Feb 2011 21:26:07 +0100 |
parents | a321f9300054 |
children |
line wrap: on
line source
# Copyright (c) 2003-2008 Ralph Meijer # See LICENSE for details. class Error(Exception): msg = '' def __init__(self, msg=None): self.msg = msg or self.msg def __str__(self): return self.msg class NodeNotFound(Error): pass class NodeExists(Error): pass class NotSubscribed(Error): """ Entity is not subscribed to this node. """ class SubscriptionExists(Error): """ There already exists a subscription to this node. """ class Forbidden(Error): pass class ItemForbidden(Error): pass class ItemRequired(Error): pass class NoInstantNodes(Error): pass class InvalidConfigurationOption(Error): msg = 'Invalid configuration option' class InvalidConfigurationValue(Error): msg = 'Bad configuration value' class NodeNotPersistent(Error): pass class NoRootNode(Error): pass class NoCallbacks(Error): """ There are no callbacks for this node. """ class NoCollections(Error): pass class NoPublishing(Error): """ This node does not support publishing. """